Skip links

Solved – Version code 1 or X has already been used. Try another version code – Android App Upload error

You need to update version code in app/build.gradle file. You need to simply increase versionCode and versionName from previous details.

If it says versioCode 1 is already been used, change it to 2 in defaultConfig.

defaultConfig {
        applicationId "com.austroapp"
        minSdkVersion rootProject.ext.minSdkVersion
        targetSdkVersion rootProject.ext.targetSdkVersion
        versionCode 2
        versionName "2.0"
    }

Almost everyone new to app development faces this issue and this is part of learning Mobile application.

Leave a comment