Gradle tip: how to use the archivesBaseName to change the apk name

I am seeing a lot of build.gradle where there are tasks to rename the apks.

I prefer using something different, without use another tasks, setting the archivesBaseName.

For example:

  defaultConfig {
      project.ext.set("archivesBaseName", "MyName-" + defaultConfig.versionName);





Popular posts from this blog

Snippet: align a TextView around an image

NotificationListenerService and kitkat