Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Your APK's version code should be higher than 378

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

like image 671
Muhammad Irfan Avatar asked Jul 30 '16 07:07

Muhammad Irfan


People also ask

What is APK version code?

android:versionCodeAn internal version number. This number is used only to determine whether one version is more recent than another, with higher numbers indicating more recent versions. This is not the version number shown to users; that number is set by the versionName attribute.


1 Answers

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 [email protected])

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

like image 90
JeromeXoo Avatar answered Sep 18 '22 13:09

JeromeXoo