Version code has already been used Android Origin: On your device Last updated 15 Oct 2026

Play Console: Version code 1 has already been used. Try another version code

Every upload to a Play app needs a higher versionCode than any previous upload (in any track).

Exact message you may see Version code has already been usedVersion code 1 has already been used. Try another version code
Seen on: Android

Meaning

versionCode is an integer that must increase; versionName is just the label. CI builds should auto-increment it (build number, timestamp).

Common causes

  • versionCode not increased
  • Uploaded the same build again
  • Another track already has that code

⚡ Quick fix

  1. Increase versionCode
  2. Generate it from CI build numbers
  3. Check the highest code in App bundle explorer

Detailed fix by platform

Gradle

  1. kotlin
    android {
      defaultConfig {
        versionCode = (System.getenv("BUILD_NUMBER") ?: "1").toInt()
        versionName = "1.4.0"
      }
    }

How to diagnose

  1. Codes — Highest uploaded vs this one
  2. CI — Auto-incremented?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: On your device. Errors that are often confused with or caused by this one (click to open):

ActivityNotFoundException — ActivityNotFoundException: Unable to find explicit activity class; have you declared this activity in your AndroidManifest.xml? (Android)ActivityNotFoundExcep…adb unauthorized — adb: device unauthorized. This adb server's $ADB_VENDOR_KEYS is not set (Android)adb unauthorizedAndroid resource linking failed — AAPT: error: resource x (aka y) not found — Android resource linking failed (Android)Android resource link…android:attr/lStar not found — AAPT: error: resource android:attr/lStar not found (Android)android:attr/lStar no…must target at least API level — Play Console: Your app currently targets API level 33 and must target at least API level 34 (Android)must target at least …R8: Missing class — ERROR: Missing classes detected while running R8. Please add the missing classes or apply additional keep rules (missing_rules.txt) (Android)R8: Missing classRedundant Binary Upload — ITMS-4238: Redundant Binary Upload. You've already uploaded a build with build number 'x' for version number 'y' (iOS)Redundant Binary Uplo…signed in debug mode — Play Console: You uploaded an APK or Android App Bundle that was signed in debug mode. You need to sign your APK or Android App Bundle in release mode (Android)signed in debug modeVersion c…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.