Cannot find Keystore Entry. But I know it's there

Android Studio on Windows 10

cannot load key store: unrecognized keystore entry

  • Android WebView touch event link
  • Overriding GCM permission package prefix with Gradle
  • How to customize android tabs or background change?
  • Android Calling JavaScript functions in WebView
  • How to make transparent gradient?
  • Android: How can I set a listener to the MenuButton?
  • I have an existing app compiled and signed. I’ve created a new version of it. The unique id for the app is the same (com.name.appname). I want to sign the new version with the existing key.
    I have the key. I know the password. I know the alias is correct. All I get back is:
    cannot load key store: unrecognized keystore entry

    More specifially: Error:Execution failed for task ‘:app:packageRelease’.

    com.android.ide.common.signing.KeytoolException: Failed to read key [name] from store “[path]\publishKey”: Unrecognized keystore entry

    All of the answers I see here are along the lines of “use the command line utility to find the key alias”, bla bla bla…

    I know this stuff is there and correct. It’s just not letting me use it.

    What am I missing here? Is there something I need to edit to let it know that I indeed DO want to use that signature?

  • Indoor Positioning System based on Gyroscope and Accelerometer
  • crashlytics developer tools error when building android -gradle project
  • How can I access my localhost through Android phone?
  • MultiSelect gesture like Google Photos app
  • How to dynamically update a ListView on Android
  • How can i create new virtual mouse device on my android device?
  • 2 Solutions collect form web for “Cannot find Keystore Entry. But I know it's there”

    It appears that somehow, someway, the keystore file got corrupted. Perhaps one of the later entries did it. I do not know.
    But the way I got around this was by using a KeyStore Explorer, I was able to save the file from there, and remove the last couple of entries.

    I was then able to find the alias and sign my app normally. Both from the old machine and the new one.

    Just leaving this here in hopes that someone else will find it useful.

    You can run this command to list the content of your keystore file:

    keytool -list -keystore .keystore

    If you are looking for a specific alias, you can also specify it in the command:

    keytool -list -keystore .keystore -alias foo

    If the alias is not found, it will display an exception:

    keytool error: java.lang.Exception: Alias does not exis

    // other wise you are used following command in command prompt:

    C:\Program Files\Android\Android Studio\jre\bin>keytool -exportcert -alias androiddebugkey -keystore %HOMEPATH%.android\debug.keystore | C:\OpenSSL-Win32\bin\openssl.exe sha1 -binary | C:\OpenSSL-Win32\bin\openssl.exe base64

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