Google Play failed to upload artefacts. Version code X has already been used

Hi there,

I am trying to deploy my app from my git repo. What I did was:

  • Updated app version to 2.0.0+1 in pubspec.yaml

  • Updated versionCod to 2 and the signingConfig from signingConfigs.debug to signingConfigs.release in android/app/build.gradle

But for some reason, the FF deployment for Google Play return the error:

Publishing app-release.aab to Google Play Google Play failed to upload artefacts. Version code 1 has already been used.: { "error": { "code": 403, "message": "Version code 1 has already been used.", "status": "PERMISSION_DENIED" } }

It seems that the code update from Git doesn't sync with FF, isn't it?

How to sync the changes in FF?

6
2 replies