Upload failed You need to use a different version code for your APK because you already have one with version code 2

后端 未结 19 1307
温柔的废话
温柔的废话 2020-12-22 20:59

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

相关标签:
19条回答
  • 2020-12-22 21:25

    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
    }
    
    0 讨论(0)
  • 2020-12-22 21:26

    If you're using Android Studio, you could go:

    Build -> Edit Flavors

    And change the Version Code and Name from there.

    0 讨论(0)
  • 2020-12-22 21:28

    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"
        }
    ...
    }
    
    0 讨论(0)
  • 2020-12-22 21:30
    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.

    0 讨论(0)
  • 2020-12-22 21:30

    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">

    0 讨论(0)
  • 2020-12-22 21:31

    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

    0 讨论(0)
提交回复
热议问题