Version code has already been used 🤖 Android

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).

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:

🧠 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.