google play application upload failed

前端 未结 8 663
故里飘歌
故里飘歌 2020-12-19 01:12

apk upload failed to the google play market.

I am trying to upload the upgraded version of my app to the google play but I am keep getting the message -

<         


        
相关标签:
8条回答
  • 2020-12-19 01:33

    Things you have to keep in mind when updating your application on Google Play :

    1. Change Version code +1 depending on the old value - if it's 1 , you have to change it to a bigger number.

    2. Change your App Version Name to something bigger / different if it's string - if your old version is 1.0 - it should be 1.1 / 1.0.1 or whatever you like (it's always a better option t have some version name strategy, if it will contains the date update affffded or the revision it depends on you).

    And if you want to be able to update your app, don't change project package name! That's how android system knows that this application is different than that one. If you change your package name, it's now acting like a new app and you won't be able to update it from Google Play Store! To change your package name to com.corntail.project first you need to change it in manifest and after that in your project's main package and you need to keep track of your activities, if you declared them with package name too. For example :

    if your MainActiivty was declared in manifest like :

    com.corntail.main.MainActivity 
    

    you need to change it now to be like :

    com.corntail.project.MainActivity.
    
    0 讨论(0)
  • 2020-12-19 01:37

    If you build with gradlew, you should check the build.gradle file, the applicationId will overwrite the package value in the AndroidManifest.xml

    android {
        defaultConfig {
            applicationId "xxx.xxx.xxx"
        }
    }
    
    0 讨论(0)
  • 2020-12-19 01:39

    You need to use a different version code for your APK because you already have one with version code 1.

    You must change your version code in your androidmanifest.xml

    0 讨论(0)
  • 2020-12-19 01:40

    You need to change your android:versionCode="1" to 2 on the AndroidManifest...

    0 讨论(0)
  • 2020-12-19 01:43

    You have change version code in increasing order i.e. 1,2,3...so on as every time you uploaded. In every upload version code should have greater number than previous upload version code. You can change version code in APP Module Build.gradle file.

    Image

    android {
        compileSdkVersion 24
        buildToolsVersion "24.0.2"
        defaultConfig {
            applicationId "com.xyz"
            minSdkVersion 14
            targetSdkVersion 24
            versionCode 5
            versionName "1.1.4"
            testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        }
        buildTypes {
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            }
        }
    }
    
    0 讨论(0)
  • 2020-12-19 01:46

    If you're using Android Studio or building with gradle, edit your gradle script (build.gradle) to change your package name and version. These values overwrite your AndroidManifest.xml file.

    For example:

     defaultConfig {
            applicationId "com.xyz.abc"
            minSdkVersion 16
            targetSdkVersion 19
            versionCode 2
            versionName "1.1"
        }
    
    0 讨论(0)
提交回复
热议问题