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).
Version code has already been usedVersion code 1 has already been used. Try another version code 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
- Increase versionCode
- Generate it from CI build numbers
- Check the highest code in App bundle explorer
Detailed fix by platform
Gradle
- kotlin
android { defaultConfig { versionCode = (System.getenv("BUILD_NUMBER") ?: "1").toInt() versionName = "1.4.0" } }
How to diagnose
- Codes — Highest uploaded vs this one
- 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:
Similar errors
- ActivityNotFoundException ActivityNotFoundException: Unable to find explicit activity class; have you declared this activity in your AndroidManifest.xml?
- adb unauthorized adb: device unauthorized. This adb server's $ADB_VENDOR_KEYS is not set
- Android resource linking failed AAPT: error: resource x (aka y) not found — Android resource linking failed
Most viewed in Android
- Could not resolve Gradle: Could not resolve all files for configuration / Could not resolve dependency
- Unsupported class file major version Gradle: Unsupported class file major version / Android Gradle plugin requires Java 17 to run
- INSTALL_PARSE_FAILED_NO_CERTIFICATES INSTALL_PARSE_FAILED_NO_CERTIFICATES / App not installed as package appears to be invalid
Other ways to find it
Where this error sits
Origin: On your device. Errors that are often confused with or caused by this one (click to open):
🧠 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.
Report a correction or suggest an improvement
Last updated 15 Oct 2026