Najeebullah Shah
Najeebullah Shah

Reputation: 3709

keytool is not generating md5 hash for debug.store

I am using the following command in cmd to generate md5 hash for my app using google maps

The command runs and no error is shown but md5 hash is not displayed in cmd:

keytool -list -alias androiddebugkey 
        -keystore < C:\Users\najeebullah\.android\debug.keystore>.keystore 
        -storepass android -keypass android

earlier i generated api key for md5 hash regarding the following command

keytool -list -alias alias_name -keystore my-release-key.keystore

I got the api key from here, but my mapview display grey tiles only and not the map, so i thought that i may need to use api key for androiddebugkey.

Thanks in advance for any solution

Upvotes: 2

Views: 1244

Answers (1)

Will Tate
Will Tate

Reputation: 33509

If you are using JDK 7 you will need to add the -v option to keytool to get the MD5. By default in JDK 7 it only gives the SHA.

Upvotes: 4

Related Questions