Keytool alias does not exist

Viewed 46384

I am trying to get my debug.keystore md5 key so I can get the API key for Google Maps.

I run the command:

 keytool –genkeypair -alias armand -keypass pass

And then running the command:

keytool -list -alias armand -keystore debug.keystore

I then enter my password and it gives me the following error:

keytool error: java.lang.Exception: Alias <armand> does not exist

What am I doing wrong?

3 Answers

This is what worked for me, first go to your JDK/bin dir, in my case this is C:\Program Files\Java\jdk-12.0.1\bin, click on dir path and write cmd to open command prompt or simply open cmd and navigate to your JDK\bin dir.

Then write:

keytool -list -v -alias androiddebugkey -keystore %USERPROFILE%\.android\debug.keystore

When prompted for password write: android

Related