Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

android

I want to published a update version of my android apps.

When I upload it give me this warning.

Lot of article show If I add version number in my manifest file it work.

in my case it not still working.

like image 922
Sushen Biswas Avatar asked Oct 20 '25 03:10

Sushen Biswas


1 Answers

Every time you build a new apk or bundle to publish to the store you need tu upgrade the versionCode in app level build.gradle file. Usually it's increase 1 by 1. In your case upgrade to 2.

versionCode 2

look at this : https://developer.android.com/studio/publish/versioning

android 
{ 
    compileSdkVersion 28 defaultConfig 
    { 
        applicationId "example.xxz.abc"
        minSdkVersion 19
        targetSdkVersion 28
        versionCode 1  <-------------- CHANGE HERE
        versionName "1.0"
    } 
    buildTypes 
    { 
        release 
        { 
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        } 
    } 
} 

dependencies 
{ 
    implementation fileTree(include 
                            : [ '*.jar' ], dir 
                            : 'libs') 
    ...
} 
like image 171
SebastienRieu Avatar answered Oct 22 '25 05:10

SebastienRieu