1. Home
  2. Knowledge Base
  3. Frequently Asked Questions
  4. BuddyBoss App
  5. Build
  6. Build Errors
  7. How to Fix Google Play Upload Error – Version Code Already Been Used

How to Fix Google Play Upload Error – Version Code Already Been Used

Introduction

When uploading your Android App Bundle to the Google Play Console, you may encounter the error:

Version code 2 has already been used

This means the numeric versionCode in your AAB matches one already published or in draft. Google Play requires each upload to use a strictly higher versionCode.

Every Android release is identified by an integer versionCode. If you attempt to upload a new build with a versionCode that’s equal to or lower than one you’ve previously uploaded, the Play Console will reject it.

Increment the Version Code

  1. Open your app’s build.gradle (module-level) or your BuddyBoss App plugin’s Android settings.
  2. Locate the versionCode entry.
  3. Increase it to a unique, higher integer (e.g., from 2 to 3).
  4. Save your changes.

Generate a New Release AAB

  1. In WordPress, go to BuddyBoss App > Build.
  2. Select Release and click Send Build Request.
  3. Confirm that the new AAB reflects your updated versionCode in Step 2: Review Information.

Upload to Google Play Console

  1. Open the Play Console and navigate to Release > Production (or your track).
  2. Click Create new release.
  3. Upload the newly generated .aab file.
  4. Continue through the release flow—your build should now be accepted.

Do I Need to Generate a New Build?

Yes. Bumping the versionCode necessitates building a fresh AAB so that the updated code is embedded in your app package.

Troubleshooting and FAQs

Q: How do I check my current versionCode in Google Play?
A: In Google Play Console, go to Release > App Bundle Explorer. Each uploaded AAB shows its versionCode.

Q: Why can’t I reuse the same versionCode?
A: Google Play mandates each new upload use a strictly higher versionCode to identify updates correctly.

Q: What if I accidentally skip a versionCode?
A: It’s safe to skip numbers (e.g., jump from 2 to 10). Just ensure each new build’s code is greater than the last.

Q: I incremented versionCode but still get the error—why?
A: Confirm you rebuilt and re-uploaded the fresh AAB. Clear any cached build artifacts and retry the build process.

Was this article helpful?

Related Articles

To speak to our Agency consultant, fill in the form found at our Contact Page.

  • Get Started

    Enter your name and email address to get started with your project...

  • This field is for validation purposes and should be left unchanged.

Not recently active