I am trying to upload a new update for the beta version of my last app on google play store.
I've tried several version codes, 1,2,3,29 !! But no matter what version code is set, it shows this error
Upload failed You need to use a different version code for your APK or Android App Bundle because you already have one with version code 29
please note that the last version of the app is actually 1.
Here is a part of my gradle app
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.company.myapp"
minSdkVersion 18
targetSdkVersion 28
versionCode 29
versionName "29.2.5"
multiDexEnabled true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
It was strange to find the solution, that the problem is not that the app is not being accepted on play store, but some double upload happened because of the bad internet connection, so that the app is keep uploading again, after it is being already uploaded.
I noticed that after finishing the upload it shows again 99% uploading, then the error occured.
When I checked after 2 days, I found that those versions 2,3,29 have been successfully uploaded !
So It is not an issue in the bundle or apk, but on google console in uploading process handling slow internet connections.