React Native & Expo errors · Error 11 of 12

Google Play: “Version code has already been used”

By Muhammad Abdullah, full-stack, mobile and ai automation developer · Last reviewed

Version code X has already been used. Try another version code.

Short answer

Every upload to Google Play needs a higher versionCode than any build uploaded before. Increment android.versionCode, or let EAS manage it automatically.

Common causes

  • Uploading a new build without increasing the version code.
  • A local and a cloud build using different version sources.

How to fix it

  1. Let EAS track and increment build numbers in eas.json:

                          {
      "cli": { "appVersionSource": "remote" },
      "build": { "production": { "autoIncrement": true } }
    }
                        
  2. Or raise expo.android.versionCode in your app config manually before each build.

Let’s talk about the next step

Have an idea, a stuck app, or a workflow toimprove?

Tell me what you are building, what is blocking you, and what a successful outcome looks like.