小编Mos*_*Ata的帖子

“您需要为您的 APK 或 Android App Bundle 使用不同的版本代码”无论设置什么版本代码

我正在尝试为我在 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)

version google-play android-studio

11
推荐指数
2
解决办法
2万
查看次数

标签 统计

android-studio ×1

google-play ×1

version ×1