React native Expo Version code 1 has already been used. Try another version code

Viewed 2578

After updating my app I am trying to upload my expo app to the playstore but getting error again and again. I changed the version in app.json version": "2.0.0" and also try this version": "1.0.1" and version": "1.0.2". I have no idea why it is showing me this error.

Answer The ios.buildNumber and android.versionCode distinguish different binaries of your app. Make sure to increment these for each build you upload to the App Store or Google Play Store.

1 Answers

You need to increase the android versionCode and iOS buildNumber, not the version string.

"ios": {
  "bundleIdentifier": "com.yourcompany.yourappname",
  "buildNumber": "1.0.0" //increase it for iOS
},
"android": {
  "package": "com.yourcompany.yourappname",
  "versionCode": 1 //increase it for android
}
Related