Some years ago i made an APP with PhoneGap. Now I would like to replace it with one made with EXPO.
I have the keystore and the credentials.
I run the build, select I want to upload my own keystore! and I try to upload the resulted APK.
which result in an error:
Upload failed
You uploaded an APK that is signed with a different certificate to your previous APKs. You must use the same certificate. Your existing APKs are signed with the certificate(s) with fingerprint(s):
[ SHA1: ..... ]
and the certificate(s) used to sign the APK you uploaded have fingerprint(s):
[ SHA1: .... ]
I think i managed to fix it.
Uploadind my keystore seems to work but for some reason it was still using an old ket.
I had to use the credentials manager command line to update it
There was a bug in few recent versions of expo-cli, so if you cleared your credentials and specified keystore manually, it didn’t update(and generated new one on expo servers)
If you update to latest expo-cli and pass this keystore again to build command it should work
In my case, i was relying fully on expo. Issuing only the command expo build:android -t app-bundle. I haven’t generated my keystore before until today. Haven’t uploaded my keystore manually during the build.
I normally upload using expo upload:android --key <file> --track production --latest, I also tried uploading manually on Google Play.
When i checked the hashes, it was different from my Google Play Upload Certificate.
I already updated my expo-cli to the latest version.
When I tried to generate my keystore using expo fetch:android:keystore, the keystore contains different certificate from Google Play
I tried expo credentials:manager and tried to upload the generated keystore, but still the same.
I also tried this EXPO_LEGACY_API=true expo build:android
But I haven’t tried cleared credentials, I’m afraid I might do something wrong.
How can I fix this? For Android builds only, tried multiple builds already.
did you change your slug? keystores in our credentials manager are tied to your username and app slug combo. if you change your slug back and fetch credentials you can upload those to use on your new slug