I'm trying to upload the bundle file for my .NET MAUI app to Google Play but I'm getting the following error:
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:
It then shows the fingerprint it's expecting. I see the SHA1 and SHA256 fingerprints Google PLay is expecting under App Integrity > App Signing tab and these fingerprints are different than the ones created when I followed the documentation for publishing .NET MAUI to Google Play at https://learn.microsoft.com/en-us/dotnet/maui/android/deployment/overview
Google Play allows me to download certs i.e. upload_cert and deployment_cert. How do I use the fingerprints in these certs when creating my .NET MAUI app's Android package?
This is happening because I had already uploaded another version of my app to Google Play and now the signing key is not matching.
Here's how I was able to resolve the issue:
foo.kestore. Change it to whatever your keystore file's name currently is.alias I used when I was generating my keystore file. If you remember it, just use it in the command you're going to run. The generic command suggests foo. Just use the correct one. If you don't remember the alias you used, then run keytool -list -v -keystore "foo.keystore" -storepass myPassword which will give you all the entries in your keystore which will include the alias. Again, in this command, don't forget to use the correct filename for your keystore along with the password you used.output.zip. You then upload it to Google Play on the same screen.If you do all this correctly, you should now be good to go! Good luck!
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