Normally we build android package in debug mode with the command
ant debug
and got the apk filename AppName-debug.apk.
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