To submit or publish your Android app on the Google Play Store, you have to configure the app bundle keys.
If you are using the Expo tool for app development, you have to configure Android key credentials at the beginning or anytime during development.
Ensure you configure your Android key credentials before uploading your apk on Google Play.
Otherwise, you will get an 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: SHA1: <key_1> but the certificate used to sign the App Bundle you uploaded has fingerprint: SHA1: <key_2>
Whether you are publishing app on play store first time or if you have forgotten your keystore credentials, follow the steps below.
It will download a zip file which includes a
.md file for credentials and a
.jks file for Keystore details.
Run the below command to get the keystore password and credentials.
Choose the following options.
Select platform › Android Which build profile do you want to configure? › production
Keystore: Manage everything needed to build your project ✔ What do you want to do? › Download existing keystore ✔ Do you want to display the sensitive information of the Android Keystore? … yes
You will see the keystore password, key alias, and key password. Take note of these credentials. You need them in the next step.
Unzip the bundle you downloaded from the first step.
There are two files in it with extensions
In this step, we are interested in
We are using
keytool for generating
pem file. To execute
keytool you need Java runtime install on your system.
Install Java runtime using Brew if you don’t have it installed.
brew install --cask adoptopenjdk
To make sure Java is installed properly, check the Java version.
openjdk version "16.0.1" 2021-04-20 OpenJDK Runtime Environment AdoptOpenJDK-16.0.1+9 (build 16.0.1+9) OpenJDK 64-Bit Server VM AdoptOpenJDK-16.0.1+9 (build 16.0.1+9, mixed mode, sharing)
keytool -export -rfc -alias <key_alias> -file upload_certificate.pem -keystore \@<filename.jks>
In the above command, enter the
key_alias you received from the 2nd step.
You can provide any name for the upload certificate .
pem file for option
On execution of the command, you will be asked to enter the keystore password.
Enter keystore password:
Again you get the password from the 2nd step.
If you don’t have Java runtime installed, you will get the below error.
The operation couldn’t be completed. Unable to locate a Java Runtime. Please visit http://www.java.com for information on installing Java.
On successful execution of the command,
upload_certificate.pem will be downloaded.
upload-certificate.pemfile (file generated in the 3rd step).
With this, you have requested Google Console to reset the app upload key.
It will take two business to get your new upload key validated.
Once your new update key is validated, you can upload your app bundle to publish on the Google Play Store.
Note: Also make sure you update version code before submitting app on Google play store.
Hope this solves your problem and you are able to submit your Android app bundle on Google play store. If you are still facing any problem, share it in the comment section below.