According to this answer How to solve "Your APK's version code needs to be higher than 2." in Google Play's Developer Console? I have just changed the vers
For people who use Android Studio the problem may be solved by editing versionCode
and versionName
in build.gradle
instead of AndroidManifest.xml
.
e.g.
defaultConfig {
applicationId "com.my.packageId"
minSdkVersion 15
targetSdkVersion 22
versionCode 2 <-- change this
versionName "2.0" <-- change this
}
If you're using Android Studio, you could go:
Build -> Edit Flavors
And change the Version Code and Name from there.
In Android Studio 1.1.0, change versionCode
in build.gradle
for Module: app
and don't necessarily change versionName
:
android {
...
defaultConfig {
...
versionCode 3
versionName "1.0"
}
...
}
android:versionCode="28"
Your previous versionCode
was 28. You should increment it by 1 to 29.
android:versionCode="29"
Presumably, your previous app versions were 1 through 28. By releasing with versionCode 3, you are conflicting with a previous version of your app that was already released with this versionCode.
if you are using phonegap / cordova applications, just edit your config.xml and add the android-versionCode and version in the widget.
<widget id="com.xxx.yyy" version="1.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" android-versionCode="100001" version="1.0.1">
In my case it a simple issue. I have uploaded an app in the console before so i try re uploading it after resolving some issues All i do is delete the previous APK from the Artifact Library