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.
<
Had the same problem and solved it by changing the following values in the build.gradle
file in the Module: app
defaultConfig {
applicationId //app package goes here
minSdkVersion 10
targetSdkVersion 21
**versionCode 2
versionName "1.1"**
signingConfig //name of keystore goes here
}
This is the way Android Studio keeps track of the versioning for each app.
Alternatively, for the noobs, you can access these settings by clicking on the settings of the app, and navigating to the Flavors tab. There you can amend certain settings such as the versionCode and the versionName.
Hope this helps :)