Play Store publish keeps failing with Code 403 - APK specifies a version code that has already been used #1758
Replies: 3 comments 5 replies
-
Hi @ajeetschouhan, This error message usually shows if permissions aren't correctly set up with the service account user. Please refer to this document to see if this helps and let us know. Otherwise, you didn't increment the APK version that is being fetched from the play store. Please refer to this document for that information. |
Beta Was this translation helpful? Give feedback.
-
@ajeetschouhan Hi, with what command are you building the APK? Could you share the script please. After changing the version manually from pubspec.yaml, you need to run flutter build commands in order for the android/local.properties file get updated values. I suspect you may be running ./gradlew tasks, which do not update the local.properties file. I suggest you build your APK with |
Beta Was this translation helpful? Give feedback.
-
This discussion is being closed due to no activity in the last 14 days. You can reopen the discussion at any time if needed. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
If you are looking for help, please confirm the following...
Which mobile framework are you using?
Flutter (Dart)
Steps to reproduce
Update version in pubspec.yaml
Build & Publish iOS and Android in codemagic
iOS builds successfully and uploads to app store
Android build successfully but play store upload fails with Code 403 - APK specifies a version code that has already been used
Somehow pubspec.yaml version is not getting reflected in android build. It always builds with same version.
Expected results
Android build should be successful and should get uploaded to play store.
Actual results
Android build is not getting published to play store. Fails with error Code 403 - APK specifies a version code that has already been used
Build id (optional)
No response
Beta Was this translation helpful? Give feedback.
All reactions