2

Is there a way to make Android Studio preform a clean project automatically whenever I generate a signed APK?

Normally I do this manually before releasing an update, but apparently yesterday I did not and now my app strings are all out of sync. I'd like to prevent this from happening again by making Android Studio clean the project as part of the generate APK process.

Any ideas?

Terry W
  • 203
  • 3
  • 9

1 Answers1

0

You could try to modify your Gradle script to clean while assotiating with progaurd for release

Android Studio Build/Clean

Community
  • 1
  • 1
takrishna
  • 4,884
  • 3
  • 18
  • 35
  • I think I understand your concept, adding a command to the "build.gradle(Project)" file, but am unsure of the exact command – Terry W Mar 24 '16 at 10:23
  • Please elaborate a bit on that, I haven't found any way to *modify the Gradle script*. – Bowi Apr 04 '19 at 16:06