Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change generated apk name from "app-debug.apk"

Every time I run a project with Android Studio (1.02) it's generate an unsigned apk which located in ..\build\outputs\apk folder and get by default the name "app-debug.apk"

I want to change that default name to something else.

Is it possible? How?

like image 504
Elnatan Derech Avatar asked Sep 04 '25 16:09

Elnatan Derech


1 Answers

In build.gradle (Module: app):

android {
    ...
    defaultConfig {
        ...
        setProperty("archivesBaseName", "MyNewAppNameGoesHere")
    }
}

This works by modifying the archivesBaseName-property and works for Gradle Version >= 2.0, last tested with 2.1.0.

like image 55
Murmel Avatar answered Sep 07 '25 08:09

Murmel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!