14

I have created an Android app in Phonegap Build few months ago and its working fine and available on Play Store .I have Published Couple of updates of my app and thay are all Published Successfully but today i want to publish new update of my app but its showing the error "Your APK Version code should be higher than 378 "

enter image description here

I have changed Version in config file and also changed the android:version code and version name in AndroidManifest file but nothing working for me . Any help would be Appreciated .Thanks

Amit Vaghela
  • 22,772
  • 22
  • 86
  • 142
Muhammad Irfan
  • 294
  • 2
  • 11

2 Answers2

43

I think I have the same problem as you.

In production, i have The Following release:

200118 (2.0.11)

Note that the 6-digit versionCode

I have updated Cordova Client (Cordova Android 5.2.1 and cordova@6.3.0)

I want to publish new release (my config.xml for the new version):

Widget id = "com.xxxxx.yyyyyyyyyyy" version = "2.1.1"

When I compile the release with Cordova, I get a manifest:

Manifest android: hardwareAccelerated = "true" android: versionCode = "20101" android: versionName = "2.1.1"

Note that the 5-digit versionCode

When I want to publish on Google Play, so I get the same message as you: "Your APK version code shoulds be Higher Than 200118"

Cordova bug?

As a workaround, edit your config.xml, add "android-versionCode" and specify your versionCode manually:

widget id="com.xxxxx.yyyyyyyyyyy" android-versionCode="201018" version="2.1.1"

And build

JeromeXoo
  • 1,378
  • 14
  • 16
0

Your version in config.xml should be more than the previous one.Check my this answer link

Community
  • 1
  • 1
Homen
  • 1,222
  • 1
  • 12
  • 16