GooglePlay - wrong signing key for app bundle
The solution was a very basic one. I had to clean my project and then rebuild it.
Android Studio was signing my app bundle with the old certificate i was using.
What I did previously is go to Build -> Generate Signed Bundle / APK
and i changed the jks file in the file selector to the new upload jks. It seems Android Studio caches the old certificate path and uses it even though I've selected a new one. Might be a bug in AS.
So yeah ... now if I clean the project every time i change the jks file it works, the apk or app bundle gets signed with the proper certificate...
Your Android App Bundle is signed with the wrong key. Ensure that your app bundle is signed with the correct signing key error
Clean the project and rebuild it, Android Studio caches the previous location of the app Key and creates issues, it is a major bug and it happened with me too
OR
Assuming this is the first time you are uploading the app, and not posting an update
Delete the app release draft completely and start over again
Creating New Release and got 'Your Android App Bundle is signed with the wrong key'
The keystore may be versioned if it was committed as part of your project so simply reverting that change would restore the previous keystore for you to use.
Alternatively, you'd need to contact Google and go through the process of establishing your new keystore as the valid signing entity. You can reach out to Google via this form
You'll need to provide a certificate from your new keystore which you can generate with the following command:
keytool -export -rfc -alias prod -file upload_certificate.pem -keystore keystore.jks
Related Topics
Activity Layout: Fragment Class: VS Android:Name Attributes
How to Check Which Notifications Are Active in Status Bar in Android Dev
Change the Text Color of Numberpicker
Android: Programmatically Detect If Device Has Hardware Menu Button
Android: Implementing Progressbar and "Loading..." for Endless List Like Android Market
Creating Custom Lockscreen in Android
How to Crop an Image in Android
Ndk Resolution Outcome: Project Settings: Gradle Model Version=5.4.1, Ndk Version Is Unknown Error
How to Save Image in Android Gallery
Android Java.Lang.Noclassdeffounderror
How to Create a Custom Notification Layout in Android
How to Add "Go Back" Function in Webview Inside Fragment
Getlastknownlocation Always Return Null After I Re-Install the APK File via Eclipse
How to Make an Android Slidingdrawer Slide Out from the Left
How to Tell If the Sdcard Is Mounted in Android