我正在尝试为我在 google play 商店上的最后一个应用程序的测试版上传一个新的更新。
我试过几个版本代码,1,2,3,29 !! 但是无论设置什么版本代码,都显示这个错误
上传失败您需要为您的 APK 或 Android App Bundle 使用不同的版本代码,因为您已经有一个版本代码为 29 的
请注意,该应用程序的最后一个版本实际上是 1。
这是我的 gradle 应用程序的一部分
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'
}
}
}
Run Code Online (Sandbox Code Playgroud)