I released my app, and now I need to upload some bug fixes. I use ionic package release android to get my APK, but the APK’s version code doesn’t change even though I changed it in the AndroidManifest.xml
I was using “ionic package release android” to prepare my apk, but it wouldn’t update the versionCode. I tried putting the versionCode in config.xml, but that didn’t work, so I just buld the apk myself now.
Version code is one that will be present at config.xml. once we create a platfrom using ::
ionic platform add android
then at platform folder–>android–> you will find android manifest.xml file
open in notepad there android:versionCode=“601” android:versionName="0.6.1"
here 601 is version code which should be changed before generating apk
android:versionName=“0.6.1” is the name that is displayed at user side at setting option
version 0.6.1
this versionname is optional
**how to set version code in ionic in manifest file i already change the version code but when i build its change again to one . kindly
tell how to process this because i am new in this . kindly tell thanks
in advance .want to update app on play store but when try this every time i am getting this error :-
You need to use a different version code for your APK because you already have one with version code 1.
if you really dont want to generate Version code(60002) automatically based on Version(6.0.2) then you can pass your user defined customized version code from config.xml itself like this - <widget id=“xxx.xxxx.xxx” android-versionCode=“60005” version=“6.0.2” xmlns=“http://www.w3.org/ns/widgets” xmlns:cdv=“http://cordova.apache.org/ns/1.0”>
Then it will get updated automatically in android manifest file also.