Alex Rivera | Logout

How to include version string in the filename when building Android apk with ant?

Asked 2011-03-11T07:58:38.240
22

Normally we build android package in debug mode with the command

ant debug

and got the apk filename AppName-debug.apk.

Is there any way to generate the apk file in the format of AppName-debug-<version-number>.apk directly without 'mv' command?

Thanks.

Edit
Report

2 Answers

4

Solution described in the following post has custom_rules.xml file that can be just copied to achieve the desired result. http://jeffreysambells.com/2013/02/14/build-your-android-apk-with-the-manifest-version-number

answered 2013-07-02T08:20:53.577
-4

Yes there is a way to generate apk file with any name i give a process to you fallow this process the you got .apk mention your name.

1-Right click on application in package explorer . 2-Chose export. 3-chose Android 4-Choose Export Android application. 5-Create new keystore . 6- fill the form. 7-: Give apk file name what you want 8-:give location to apk to store apk .

Then you find solution of your problem. I hope this is help.

answered 2011-03-11T08:43:56.847

Your Answer