Changed owner and got "Your Android App Bundle is signed with the wrong key"


We released an app and after the release changed owner to a team account. After that I cannot release on google play store. The error message i get when trying to upload the app bundle:

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 {hash value}.

I guess i messed up with letting expo handle the signing, after changing owner. Now the hash i get from
expo fetch:android:hashes --config ./app.production.json

differs from the hash in google play.

I have some backup files, i created from:
expo fetch:android:hashes --config ./app.production.json
expo fetch:android:upload-cert --config ./app.production.json
but i can see i don’t have the key store backup expo fetch:android:keystore --config ./app.production.json

In short, i have the hashes and upload cert backup but not the key store backup.

What should I do from here (google is managing key signing)?

Thanks :slight_smile:

Expo CLI 3.22.3 environment info:
      OS: Windows 10 10.0.18363
      Node: 12.18.2 - C:\Program Files\nodejs\node.EXE
      Yarn: 1.21.1 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
      npm: 6.14.5 - C:\Program Files\nodejs\npm.CMD
      Android Studio: Version AI-191.8026.42.35.6010548
      expo: 36.0.0 => 36.0.0
      react: 16.9.0 => 16.9.0
      react-dom: 16.9.0 => 16.9.0
      react-native: => 0.61.4
      react-native-web: 0.11.7 => 0.11.7
      react-navigation: 4.0.10 => 4.0.10
  • remove owner from app json
  • run expo fetch:android:keystore (you need file and 3 values printed in terminal)
  • add owner back to app.json
  • run expo build:android --clear-credentials or expo credentials:manager and specify those values

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.