G
G
geron2016-03-23 09:24:42
Android
geron, 2016-03-23 09:24:42

How to set the name of the apk file?

Good afternoon!
I am compiling a release version of the application for publication in the play market. The apk file name is "app-release.apk" I would like to make the name of the apk file according to the name of my application, something like this "my_app.apk". I noticed that "app" is taken by the name of the module, if you rename the module, it will turn out as I want. But I think that there is a more beautiful way, say, configure gradle or somehow fix it in the manifest without the word "release". Please tell me how can this be done?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
Oleg Gamega, 2016-03-23
@geronix

defaultConfig {
        ......

        archivesBaseName="apk_name"
       .......
    }

I
IceJOKER, 2016-03-23
@IceJOKER

Personally, I rename the name of the module once and that's it, then I get an apk with my name on the output

C
Chvalov, 2016-03-23
@Chvalov

geron Manually rename )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question