代码之家  ›  专栏  ›  技术社区  ›  GuillaumeRZ

在Google Play控制台上更改应用程序的代码版本[重复]

  •  0
  • GuillaumeRZ  · 技术社区  · 7 年前

    .apk 在谷歌的游戏控制台上。这 使用Expo生成(并在React Native中编码)。

    第一次,我默认生成了它,它得到了 codeVersion: 1 由于“不需要此权限”,已被未经授权。

    .apk 使用另一个代码版本(无任何权限),该版本应获得批准。但是,当我试图上传 .apk

    You should use another code version for your APK or Andoid App Bundle. The code 1 is already use by another APK or Android App Bundle.

    但我不知道在哪里(或者是否)可以在GooglePlayConsole上更改应用程序的代码版本。

    我曾想过删除该应用程序,但一旦被拒绝,这是不可能的。

    有一个截图: https://puu.sh/CFAQS/ff43b0ccb8.png

    1 回复  |  直到 7 年前
        1
  •  1
  •   Antoine El Murr    7 年前

    更改gradle应用程序中的版本代码:

    android {
        compileSdkVersion 28
        defaultConfig {
            applicationId "applicationId"
            minSdkVersion 21
            targetSdkVersion 28
            versionCode 1 ----- Here you should change your versionCode
            versionName "1.0"
            testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        }
        buildTypes {
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
            }
        }
    }