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.
<
People at android and your users need to just keep track of all the updates so it's required for you to mention the version by updating versionCode and versionName
Here is how to fix the problem:
EARLIER
defaultConfig {
applicationId "com.example.random.projectname"
minSdkVersion 15
targetSdkVersion 24
versionCode 1
versionName "1.0"
}
NOW
defaultConfig {
applicationId "com.example.random.projectname"
minSdkVersion 15
targetSdkVersion 24
versionCode 2
versionName "1.0.1"
}
Remember