How to include version string in the filename when building Android apk with ant?
问题 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. 回答1: I have done this in an automated way, by using the info from the Android manifest. My approach was to modify the local project ant build.xml file to import a custom copy of the master build.xml file, in the latest version of the SDK the