Ionic not update app version


#21

This is an old thread but I’m having this problem. Did you ever figure it out?

My config.xml has

<widget android-versionCode="2" id="xx.xx.xx" ios-CFBundleVersion="2" version="0.0.4" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">

My full build script is:

env ENV=prod ionic cordova build android --prod --release -- -- --versionCode=2 --gradleArg=-PcdvVersionCode=2

Environment info:

Ionic:

   ionic (Ionic CLI)  : 4.2.1
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.2.0

Cordova:

   cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms     : android 7.1.4, browser 5.0.3, ios 4.5.5
   Cordova Plugins       : no whitelisted plugins (19 plugins total)

System:

   Android SDK Tools : 26.1.1 (/Users/willjc/Library/Android/android-sdk)
   ios-deploy        : 2.0.0
   NodeJS            : v8.11.3 (/usr/local/bin/node)
   npm               : 5.6.0
   OS                : macOS
   Xcode             : Xcode 10.1 Build version 10B61

But my output of “aapt dump badging appname.apk” is still
versionCode='1' versionName='0.0.3' platformBuildVersionName='0.0.3'

Any fresh words on this?