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?
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.
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."
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With