Your Android App Bundle is signed with the wrong key. Ensure that your app bundle is signed with the correct signing key and try again
The error suggests that you have uploaded an APK or an App Bundle previously. All the artifacts you upload to the Play Console should all be signed with the same keystore. So the error means that you signed the App Bundle with a key that is different than the ones you have uploaded previously. You have to either find that keystore you used before or reset the key by contacting Play Console support team.
I tried using the multiple answers here & in this question, but somehow I was getting this error because I had some issues with my android/app/build.gradle
and android/gradle.properties
files.
Two things you should check (in addition to the other solutions here) are:
- In
android/gradle.properties
andandroid/app/build.gradle
, make sure yourkeystore
variables match exactly.- In
android/gradle.properties
, you probably have something like this:MYAPP_RELEASE_STORE_FILE=<> MYAPP_RELEASE_KEY_ALIAS=<> MYAPP_RELEASE_STORE_PASSWORD=<> MYAPP_RELEASE_KEY_PASSWORD=<>
- Make sure these variable names exactly match those in
android/app/build.gradle
:android { ... signingConfigs { release { if (project.hasProperty('MYAPP_RELEASE_STORE_FILE')) { storeFile file(MYAPP_RELEASE_STORE_FILE) storePassword MYAPP_RELEASE_STORE_PASSWORD keyAlias MYAPP_RELEASE_KEY_ALIAS keyPassword MYAPP_RELEASE_KEY_PASSWORD } } } }
- In
- In
android/app/build.gradle
, make sure you setsigningConfig
tosigningConfigs.release
in yourrelease
buildTypes
:android { ... buildTypes { debug ... release { signingConfig signingConfigs.release } } }
I was banging my head on the table over this for about two hours. When I finally gave up and was filling out my "reset key" request, I realized that I was currently attempting to upload it to the wrong project the whole time.
So, step one: confirm that you're attempting to upload to the correct project.