Skip to content
webtoapkfree

How do I fix "Your Android App Bundle is signed with the wrong key" on Google Play?

Android App Bundle signed with the wrong key? Re-sign with the keystore whose SHA-1 matches Play Console, or request an upload key reset if it's lost.

GuidesNookesh Karri

Light cover card with the title 'How do I fix "Your Android App Bundle is signed with the wrong key" on Google Play?' in dark text and a green accent bar

The “Android App Bundle is signed with the wrong key” error means the bundle you uploaded was signed with a different key than the upload key Play Console has on file for your app. To fix it, find the keystore whose SHA-1 fingerprint matches the one Play Console expects and sign the bundle with it. If that keystore is gone and your app uses Play App Signing, request an upload key reset.

What does “signed with the wrong key” mean?

The wrong-key error means the certificate inside your bundle doesn’t match the upload key certificate registered for that listing. One troubleshooting page gives the full message: “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.”

Some versions of the message show both fingerprints. A reported variant reads “Found: SHA1: XX:XX:XX:XX. Expected YY:YY:YY:YY”. “Expected” is the key Play wants. “Found” is the key you actually used.

The Android signing guide says the upload key signs your bundle before you upload it. The app signing key signs the APKs installed on users’ phones. With Play App Signing, Google holds the second one, and Play only checks your upload key at upload time. The upload key vs app signing key post covers that split in more detail.

Why an Android App Bundle gets signed with the wrong key

The signing key mismatch almost always comes from one of a few everyday slips. The key in the bundle is real and valid, just not the one this listing knows.

  • A different keystore file. You signed with a new keystore, a debug keystore, or a copy from another project.
  • The right file, wrong alias. One keystore can hold several keys. Picking the wrong alias gives a different certificate.
  • A build tool made its own key. Many builders and frameworks create a keystore for you. Reinstalling the tool or clearing its credentials can create a fresh one.
  • New machine or browser. If your key lived on the old laptop, or inside one browser’s storage, the new setup signs with a key it just generated.
  • The wrong listing. You’re uploading to an app whose upload key was set by someone else, such as a previous developer or an agency.

How to fix the wrong key error, step by step

The fix for the wrong key error is to match fingerprints first, then sign with the matching key. Guessing between keystores wastes uploads and version codes.

1. Get the expected fingerprint from Play Console

Open your app, then go to Protected with Play > Play Store protection > Manage Play app signing. That’s the path Play Console Help gives. The signing guide says the MD5, SHA-1 and SHA-256 fingerprints of both the upload and app signing certificates are listed there.

Copy the SHA-1 under Upload key certificate, not the one under the app signing key. If the error message already shows an “Expected” value, it should be the same.

2. Read the fingerprint of each keystore you have

Run keytool on every keystore you can find. The keytool reference says -list prints the SHA-256 fingerprint by default, and -v adds the owner, issuer and serial number.

keytool -list -v -keystore my-upload.jks

Compare each result with the fingerprint from step 1. Check SHA-1 against SHA-1 and SHA-256 against SHA-256, because the two never look alike. If you build in Android Studio, the Gradle signingReport task shows the same details for the keystore your release build uses.

3. Check the bundle you uploaded

To confirm what’s inside the bundle itself, keytool’s -printcert option reads a signed JAR passed with -jarfile. A bundle is signed the same way, so this usually works:

keytool -printcert -jarfile app-release.aab

If this fingerprint matches the “Found” value, you know exactly which keystore made the bundle.

4. Re-sign with the matching keystore and upload again

Once a keystore matches, point your release signing config at it and that alias, then rebuild. A community answer also suggests re-signing the existing bundle with jarsigner and the original keystore and alias. Upload again, and raise the version code if Play already took that number (see the version code already used fix).

What if none of your keys match?

If no keystore matches, your next move depends on whether the app is enrolled in Play App Signing. Look at the Play app signing page: an Upload key certificate section next to the app signing key means you’re enrolled.

Your situation What to do
Enrolled, a keystore matches Sign with that keystore and alias
Enrolled, no keystore matches Request an upload key reset
Not enrolled, no keystore matches The app signing key is lost; updates aren’t possible

For the enrolled case, Play Console Help says you are not locked out. Its steps for an upload key reset are:

  1. Create a new upload key in Android Studio, or with keytool.
  2. Export its certificate to PEM: keytool -export -rfc -keystore upload-keystore.jks -alias upload -file upload_certificate.pem
  3. In Play Console, open the Play app signing page.
  4. In the Upload key certificate section, click Request upload key reset.
  5. Enter the reason, upload upload_certificate.pem and click Request.

The signing guide adds that resetting the upload key doesn’t affect the app signing key Google uses for your users, so their updates keep working. Google doesn’t publish a turnaround time, so don’t promise a release date until the new key is accepted. The reset upload key walkthrough covers what to expect after you send it.

The not-enrolled case is the harsh one. The signing guide says that without Play App Signing, losing your app’s signing key means you lose the ability to update your app.

When your signing key lives in a browser

Browser-based builders bring their own version of this error, because the key is stored where you built. WebToAPK Free signs in the browser and never uploads your private signing key to a build server. Its projects and password-encrypted key backups sit in that browser’s IndexedDB and aren’t synced to other devices or browsers.

You publish version 1 from Chrome on your work laptop. Months later you open the builder in Firefox at home, set up the same package name and build version 2. The builder has no key there, so it signs with a new one, and Play replies that your bundle is signed with the wrong key.

The fix is to restore the encrypted key backup you exported from the original browser, enter its password and rebuild. The tool can’t import JKS or P12 keystores, only its own backups. A forgotten backup password can’t be recovered either. If you have neither the backup nor the original browser profile, you’re in the “no keystore matches” row above. The signing and updates guide explains how to keep that backup safe.

How to stop it happening again

The cheapest fix for a signing key mismatch is never needing one.

  • Write down the fingerprint. Save the upload key’s SHA-1 next to the keystore so you can check any file in seconds.
  • Keep two backups of the keystore. Store the passwords somewhere separate, as the keystore file guide suggests.
  • Use Play App Signing. It turns a lost upload key from a dead app into a support request. The Play App Signing post explains the setup.
  • Know where your build tool keeps the key. Before you reinstall it, switch machines or clear a browser, export the key first.

My take: check the fingerprint before any upload where something changed, like a new computer, a new tool or a new teammate. One keytool command beats waiting on a reset.

The limit: nothing here rescues an app outside Play App Signing once its only key is gone. That’s how Android’s update model works, and there’s no workaround.

FAQ

Why does Google Play say my app bundle is signed with the wrong key?

The certificate in your bundle doesn’t match the upload key certificate Play Console has on file for that app. Play compares the two fingerprints and rejects the upload when they differ.

Should my upload key and app signing key be the same?

No. Play Console Help says that for maximum security your upload key and app signing key should be different, so a leaked upload key can be swapped without touching what users install.

Does an upload key reset change the key my users’ phones check?

No. Android’s signing guide says resetting the upload key doesn’t affect the app signing key Google Play uses to re-sign APKs for users.

What if I lost the key and my app isn’t in Play App Signing?

Then the lost key is the app signing key. Play Console Help says that key can’t be reset if you manage it yourself and lose it, so you can’t update that app.

Sources