If prompted for a password, try “changeit” or just press enter key to enter an empty password. This command will return SHA1 fingerprint. jdk1.7 or higher will return SHA1 by default. Remember the bold and italic text is the path to the debug.keystore file. You have to provide the path to debug.keystore file on your system. Secondly the path to the debug.keystore file must be enclosed in double quotes.

jdk1.7 Keytool returning SHA1 fingerprint.

We don’t need SHA1. we need MD5 fingerprint so either we have to use jdk1.6 or we can use the following command to generate MD5 finger print using jdk.17.

By putting a “-v” in the command it will generate the following output.

jdk1.7 keytool generating MD5 fingerprint

Copy the MD5 fingerprint. LogIn to your google account (even signing in to gmail will work). Than navigate to the following url http://code.google.com/android/maps-api-signup.html . Paste your MD5 fingerprint in field shown in the picture below and click generate api key.

Using our MD5 fingerprint to generate the Google Maps API Key

When you click generate button you will be taken to another screen showing your MD5 fingerprint, your Google Maps API Key and how you can use it in your code to enable Google Maps in Android development.

Google API Key generated by using our MD5 fingerprint

Mission Accomplished.

Note:- Please leave your comments if this article was helpful.

If you can’t find debug.keystore file in “.android” folder than follow the link to solve that issue.

Good day very cool blog!! Man .. Excellent .. Superb .
. I will bookmark your site and take the
feeds additionally? I’m happy to search out so many useful information right here within the post, we need work out extra strategies in this regard, thank you for sharing. . . . . .

I’ve been done all the following steps but unfortunately the result is
keytool error: java.lang.RuntimeException: Usage error, and is not a legal command , what’s wrong with it ? I use java 1.6 , thanks 🙂

update your JRE. than check the bin folder manually. does it have the keytool.exe file. than check the android folder in ur urser folder to see if there is any debug.keystore. if everything is in place than run the command again. it will work. if not check ur command specially the paths. there must be something wrong there.

Sir I am using ur this tutorial to use google map in my app, but when I use MD5 fingerprint then google api console say Invalid Input, but when I use SHA1, it generates apikey, and I am using this generated api key in my app,But only grid is displaying without map.Error is coming like- Couldn’t get connection factory client.
Plz help me Sir…..

[…] the SHA-1 fingerprint through command prompt. The command is explained in detail in the link How to get Google Maps API Key but there is a simple way to find out SHA-1 fingerprint but before we get this fingerprint we need […]

please give me full code of Google MAP API V2
here, i have created one application n i used Google Map API V1
so, now i want to update Google Map Api v2
so please help us. we need full source code in Google Map Api v2
please help us : mayank.langalia@live.com

[…] The problem is that the map doesn’t load in it just shows a grid of grey rectangles. I can’t see any errors myself but I don’t where to look. I have generated the API key for google maps for my certificate and by debug keystore as countless tutorials and topics on here suggest. Link 1 […]

when i right this command on cmd C:\Program Files\Java\jdk1.7.0\bin>keytool.exe -v -list -alias androiddebugkey -keystore “c:\users\PRIYA\.android\debug.keystore” -storepass android -keypass android
it show me access is denied. plz help me