Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to solve "Your APK's version code needs to be higher than 2." in Google Play's Developer Console?

I'm getting this error when uploading my Phonegap app to the Google Play Developer Console:

Your APK's version code needs to be higher than 2.

How can I fix this?

like image 443
kqw Avatar asked Mar 23 '13 23:03

kqw


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

If you're directly using Gradle, or indirectly through Android Studio:

I fixed it by editing the version number inside of the build.gradle file! There is a small banner at the bottom of the android.manifest file that says "these changes are being overwritten by the build.gradle file."

like image 126
user3546740 Avatar answered Sep 23 '22 14:09

user3546740