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

I know this was asked here

Correct answer is change version does not solve my problem id added these two lines to my manifest

 android:versionCode="2"
 android:versionName="2.01"

      

but then when I clean and build with android studio, generate the apk again, then upload the same error.

Note. I have verified that this is the correct file that I am trying to upload in the developer console.

+3


source to share


3 answers


In build.gradle file check if you have version code

 defaultConfig {
    minSdkVersion 10
    targetSdkVersion 22
    versionCode 1
    versionName "1.0"
}

      



because if you mentioned versionCode in your build.gradle file it will overwrite the values ​​in the manifest file. Please make sure you mention the version code here and you have updated here as well.

+8


source


Change it in build.gradle

your app module file in Android Studio.



+2


source


Remove those from your manifest. Go to File> Project Structure> And both tastes and build types (don't remember and I don't have my computer) Set a version name and version code.

0


source







All Articles