Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Android Studio on Windows 10

cannot load key store: unrecognized keystore entry

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?

like image 945
durbnpoisn Avatar asked Jan 08 '17 15:01

durbnpoisn


People also ask

How do I find my private key in keystore?

First call keytool -list -keystore myStore to know which alias to look for, then call this program with the passwords and parameters. In case of a private key entry, it shows the key itself and additionally a self-signed certificate which contains the public key, in a readable form.


1 Answers

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.

like image 185
durbnpoisn Avatar answered Sep 28 '22 09:09

durbnpoisn