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

Expand and collapse animation

NotificationListenerService and kitkat

Android-5: Card and images with rounded corners in Android 4