Issue
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?
Solution
This is right a way to get key:
To get certificate fingerprint (MD5) follow the steps below:
You need to get the keystore file for getting the certificate fingerprint (MD5). Your keystore file can be found at the following path:
C:\Documents and Settings\<username>\Local Settings\Application Data\Android
(Or)
C:\Documents and Settings\<username>\.android
Keystore file name is debug.keystore
.
Copy the "debug.keystore" file to some other folder (ex: - "D:\Androidkeystore\") (it's user friendly to use).
Open command Prompt and go to the Java installed directory. ("C:\Program Files\Java\\bin")
Then type the below line (given in box) and press enter.
keytool.exe -list -alias androiddebugkey -keystore "D:\AndroidKeystore\debug.keystore" -storepass android -keypass android
Here the MD5 certificate fingerprint is
64:88:A2:FC:AA:9F:B1:B0:CA:E4:D0:24:A8:1E:77:FB
This is working, but I am getting small error here:
this is my path-C:\ANDROID\Java\jdk1.6.0\bin>keytool.exe -list -alias androiddebugkey -keystore"C:\ANDROID\debugkey\debug.keystore"-storepass android -keypass android
keytool error: java.lang.RuntimeException: Usage error, android is not a
legal command
Answered By - Nikunj Patel
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.