While uploading my second app project to PlayStore, I got the following error while upload .aab file for a new release:
"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. Your App Bundle is expected to be signed with the certificate with fingerprint: ::::: "
What I did was use my first apps singing key/ my old keystore file and used this keystore file inside Android studio "build-> Generate signed bundle/apk" to generate my aab file.
Inside PlayConsole, I have checked "Let Google manage and protect your app signing key"
so I think, now Google is also keeping this keystore file safe.
When inside Google PlayConsole, I visit "Release > Setup > App integrity"
, I can see that there is an upload certificate and SH1 certificates but this information is different from previous apps keystore.
What I don't understand is why fingerprint of the previous app and it's alias is different from the current one?
I can download this Google managed certificate file from PlayConsole but I cannot use this certificate file to use as a "keystore" to sign my apk/aab file.
I have been reading answers on different forums but none of the solutions worked for me.
Answers related to “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” first, you need to generate a signing key using keytool and create keystore file for your project.
Open you React Native's project android folder. Go to Build -> Generate Signed Bundle / APK. Select Android App Bundle. Enter your key-store details (if this is your first time doing this, you have to check the Export encrypted key checkbox, which you can use for Google Play App signing) and click Next.
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 Ask Question Asked3 years, 3 months ago
1. Let Google manage and protect your app signing key (recommended) 2. Use the same key as another app in this developer account. 3. Export and upload a key from Java keystore. In order for you to use your previous projects/apps keystore file for signing apk/aab file, you need to check the second option.
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.
Copy debug.keystore (C:\Users\username\.android\debug.keystore) from the machine which used to build the first version of the App Select Build > Generate Signed Bundle/APK Provide the Key store path to the debug.keystore file Fill the other fields with the default values mentioned below and build
Finally after two days of trying different options, I was finally able to solve the problem.
What I did was delete my project from PlayConsole and tried to start things over once again.
What I found out is
"Let Google manage and protect your app signing key"
was not the correct option to consider for me, if I want to use my old keystore file.
When setting your app for the first time in the PlayConsole, when you click on
"Manage app signing"
you are presented with following options:
1. Let Google manage and protect your app signing key (recommended)
2. Use the same key as another app in this developer account.
3. Export and upload a key from Java keystore.
In order for you to use your previous projects/apps keystore file for signing apk/aab file, you need to check the second option.
Once, I checked this option, I was finally able to upload my app to playstore succesfully.
I had the same problem. But in my case I've lost my keys when I've changed my computer. And I wasn't able to publish new app in Play store, while still getting this signing error.
This is what helps me:
I hope it helps someone, it tooks me 3 days to find this solution :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With