“Version Code Has Already Been Used”: How to Fix It in Every Framework
Play rejects uploads that reuse a version code. Where to bump it in Gradle, Flutter, React Native, Expo, Unity and Godot, and how to stop it recurring.
Short answer
Every build you upload to Google Play needs a versionCode that has never been used for that app, on any track, including uploads you later discarded. Raise it (for example from 7 to 8), rebuild and upload again. The versionName users see (like “1.2.0”) can stay the same.
Why it happens
Android’s versioning docs say you can’t upload a build with a versionCode you’ve already used. Play remembers every bundle uploaded for your app, across internal, closed, open and production tracks. The usual causes:
- You rebuilt without bumping the number.
- You uploaded to internal testing, then uploaded the same code again to closed testing instead of promoting the release.
- CI built from a branch that was behind.
- A previous upload failed review or was discarded, but its versionCode still counts as used.
Where to change it
| Tool | Where versionCode lives |
|---|---|
| Android Studio (Gradle) | versionCode in defaultConfig of app/build.gradle(.kts) |
| Flutter | The number after + in pubspec.yaml, e.g. version: 1.2.0+8 |
| React Native (bare) | versionCode in android/app/build.gradle |
| Expo | android.versionCode in app.json, or autoIncrement in eas.json |
| Unity | Player Settings → Other Settings → Bundle Version Code |
| Godot | Version → Code in the Android export preset |
| Capacitor / Ionic | versionCode in android/app/build.gradle |
Rules worth knowing
- versionCode is a positive integer. Google’s maximum is 2,100,000,000.
- Higher means newer. Devices only update to a higher versionCode, which is also how testers on two tracks get the right build.
- versionName is free text and is the only version users see.
- Internal app sharing is the exception. It doesn’t require new or unique version codes, but those builds can’t be promoted to tracks.
Finding out which codes you’ve used
Play Console’s App bundle explorer lists every bundle uploaded for the app with its version code. Start the next build one above the highest number there.
Stop it happening again
- Promote, don’t re-upload. Moving a build from internal to closed testing (or closed to production) with *Promote release* reuses the same bundle legitimately.
- Let CI set the number. Use the CI run number, or a date-based integer like 2026102701. Make sure it can only go up.
- Keep a release log with date, versionCode, versionName, track and what changed. It doubles as evidence for your production access answers.
Does bumping the version affect my closed test?
No. A new release on the same closed track doesn’t reset anyone’s 14 days. See what resets the 14-day clock.
Frequently asked questions
I discarded a release. Can I reuse its version code?
Assume not. If a bundle with that version code was uploaded, use a higher number.
Do I have to increase versionName too?
No. Only versionCode must be new. Change versionName when you want users to see a new version label.
Can versionCode go down for an older build?
Devices won’t downgrade to a lower versionCode through Play. Fix forward with a higher number instead.
Sources and how we keep this accurate
Policy facts are checked against Google's own documentation on the date shown above. Google can change requirements at any time, so confirm in your Play Console. Where we give advice or estimates rather than Google's rules, we say so. TestersZone is independent and not affiliated with Google. Drafts are AI-assisted and reviewed by our team.
Need 12 testers? Get them free.
Test 3 apps, earn 60 credits, and list your app for up to 20 real testers with verified daily check-ins.
Start freeKeep reading
Upload Your First App Bundle to Play Console: Setup, Store Listing and Package Name
Release Notes for Closed Test Builds: Template, Examples and a 14-Day Rhythm
How to Publish a Flutter App on Google Play (2026)
Lost Your Upload Key? How to Reset It With Play App Signing
Android Developer Verification 2026: Play Console, Developer Console and Limited Accounts
Closed Test Release Stuck “In Review” or Rejected: What to Do
Browse all answers, or see the quick answers, guides and comparisons.