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

android

i know this has been ask here

The correct answer is to change the version does not solve my problem
id did added this two lines in my manifest

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

but then when i clean and build using android studio the generate the apk again then upload the same error happend ..

Note: I did check that it is the correct file that i try to upload in the developer console

Best Answer

In the build.gradle file check if you have versionCode like

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

because if you have mentioned versionCode in build.gradle file then it will overwrite the values in manifest file. Please make sure if you have mentioned version code here then you have updated here also.