Flutter - Publishing failed :| Failed to publish emerg_app.ipa to App Store Connect. Google Play failed to upload artefacts. Package not found: #1677
-
I'm having problems building my Flutter app for it's first release after changing the bundle ID in the following locations:android/app/build.gradle, android/app/google-services.json,android/app/src/debug/AndroidManifest.xml, android/app/src/main/AndroidManifest.xml, android/app/src/main/kotlin/com/example/emerg_app/MainActivity.kt, android/app/src/profile/AndroidManifest.xml. I've cleaned the project, cache, rebuilt the app, pushed changes and double-checked that there's no traces of the old bundle id in the project. The build ID is 6465223af4755e8d4590fbec and the following Artifacts are available: app-release.aab I'm getting the following error: Log: Failed to publish emerg_app.ipa to App Store Connect. Build failed :| Publishing failed :| The reason why I changed the bundle ID's was that in a previous build I got the error below, so I decided to change all the bundle ID's to match to prevent build errors. Publishing failed :| Failed to publish emerg_app.ipa to App Store Connect. Google Play failed to upload artefacts. Package not found: com.emerg_app.: { "error": { "code": 404, "message": "Package not found: com.emerg_app.", "status": "NOT_FOUND" } } Thanks in advance for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hey @sharon-atim, let's first go through google play publishing issue. When you change the bundle ID (package name) of your app, Google Play Store treats it as a new app rather than an update to an existing app. This means you cannot directly publish the updated version with the new bundle ID as an update to the existing app on Google Play.
let's go through this first |
Beta Was this translation helpful? Give feedback.
hey Sharon, yes you need to sign your bundle in release mode. In your app/build.gradle file, there is buildTypes block, you can define different build types for your app, such as "debug" and "release." Each build type can have its own configurations, and in your case you need to change signingConfigs to release