“ERROR: Cannot recover key” When Exporting Signed Android App with Existing Keystore

I have an existing keystore with a password and a few keys with different passwords inside for the different apps I have exported and uploaded to Google Play.

Now I have recently imported one of the app’s projects, did some significant modifications to it and I am trying to export it using the same keystore and choosing the same alias/password as I did while initially creating it.

  • How to refresh fragment tab content on button click
  • Is there any way to put extras to Intent from preferences?
  • Android get Current UTC time
  • How to save state during orientation change in Android if the state is made of my classes?
  • After Google Play Service update to version 13 I got an error
  • How to I create a 100% custom DialogFragment
  • The problem is that after the step where I choose the key alias and enter key password I see “ERROR: Cannot recover key“.

    enter image description here

    I suspect that I might be entering a wrong key password (note that the keystore password is the correct one, so this is not the reason for the issue).

    I tried creating a new alias and exporting the app under it, but Google Play won’t accept this file unless it’s signed with the same certificate.

    I really don’t know how to proceed in this scenario besides trying to brute force the key password. If you think this is the only path, do you know a good brute force cracking tool for keys in a keystore, for which I already know the password to? The keystore is a .reg file, created with Eclipse’s Export wizard.

    Related posts:

    Custom Fonts in Android PhoneGap
    How do I properly include an external jar file for a cordova plugin?
    drag n drop textview in android
    how to get current wifi connection info in android
    Proguard obfuscation is breaking simplexml
    Storing a secret key on Android
  • Where is debug.keystore in Android Studio
  • Fit Image in ImageButton in Android
  • “Hello, WebView” tutorial opens the requested address in Android browser and not in my webview
  • Certificate is trusted by PC but not by Android
  • Clickable CardView inside NestedScroll doesn't trigger scrolling
  • When to clear the cache dir in Android?
  • 2 Solutions collect form web for ““ERROR: Cannot recover key” When Exporting Signed Android App with Existing Keystore”

    Pretty sure you just entered the password incorrectly. Happened to me just now, stumbled upon your question, hoping for an answer. Didn’t find any, so I tried typing the password again. And then it worked.

    I stumbled upon the same problem. But I was sure I entered the password correctly. I even typed it to notepad and copy-pasted it to be sure. After that, I created a password cracker for my keystore key password, and found out that the key was actually the one I had been using all along! Tried once more and it worked. So I guess it was a bug of some kind. Maybe you should try closing and reopening eclipse, or restart the computer.

    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.