archivesBaseName in build.gradle of app module
See original GitHub issueWhat is the purpose of archivesBaseName in build.gradle of app module?
Issue Analytics
- State:
- Created 8 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
android - Gradle ArchivesBaseName ignored when using ...
This stopped working for me with android gradle plugin version 1.3.0 using 1.3.1 resolves it. classpath 'com.android.tools.build:gradle:1.3.1'.
Read more >Project - Gradle DSL Version 7.6
Properties added by the java plugin. Property, Description. archivesBaseName. The base name to use for archive files.
Read more >build.gradle - platform/frameworks/opt/sherpa - Git at Google
NOTE: Do not place your application dependencies here; they belong. // in the individual module build.gradle files. } } import com.google.common.io.Files.
Read more >Set Android apk filename in Gradle - Taneli Korri
By default the Android gradle plugin creates app-debug.apk, ... to the add the following to the application module build.gradle file (for ...
Read more >Gradle tips and recipes - Android Developers
Gradle and the Android plugin allow you to create different versions of your app from a single module by configuring build variants.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

You can override
archivesBaseNameanywhere in theandroidblock.~
versionNameSuffixcan already be used to differentiate between APKs generated for different flavors and is the easiest way to add the build flavor in the APK name.~ Looks like it’s just taking the flavor name and build type by default.You can have more control if you like by setting
archivesBaseNamein thevariantFilterfunction, but the flavor and type are still appended.Hi @gokhanbarisaker,
archivesBaseNameis a gradle convention for setting the name of the output file. I use this to customise the file name, e.g. toplaid-0.5.5-release.apk. See the gradle docs for more info.The
GIT_SHAbuild config isn’t currently being used. I made that available as it can be extremely useful for crash reporting (see this great article). It could be removed but I don’t see any point in doing so as it might be useful in the future and it’s nice to demonstrate this technique.