versionCode

Monkey Targets Forums/Android/versionCode

freedo(Posted 2014) [#1]
Hi , I have and app on google play that needs an update.

when I try this It fails to load the updated version because I need to change the version number in the android manifest.

Problem is when I edit the manifest xml file it sets back to the previous version
and my edited version gets overwritten after compilation.

So I try through code in monkey with the hash tags..you know

#ANDROID_versionCode="2"

But when I edit the manifest again I get a previous version #ANDROID_versionCode="1"

Any thoughts..?


Snader(Posted 2014) [#2]
Do a clean compile. Use this in the beginning of your monkey file:

#ANDROID_VERSION_CODE="1"
#ANDROID_VERSION_NAME="1.0"

Then make the numbers higher each time you want to compile and submit to google play.


freedo(Posted 2014) [#3]
Thanks..that worked.