android tutorial - Use ArchivesBaseName to change the apk name | Developer android - android app development - android studio - android app developement



You can use the archivesBaseName to set the name of apk.

Example:

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

  }
click below button to copy code from our android learning website - android tutorial - team

Output:

MyName-X.X.X-release.apk

Related Searches to Use Archives BaseName to change the apk name