Thursday, June 7, 2012

Google Map Api key for Android, JDK6 and JDK 7. and Android Invalid Map API Key

How to get Google Api key?

1.Getting the MD5 Fingerprint of the SDK Debug Certificate
 open commnad prompt.
Using cd command reach java bin folder ex. cd C:\Program Files\Java\jdk1.7.0_04\bin>

2. Type following command.
For windows 
JDK 1.7
keytool -v -list -alias androiddebugkey -keystore "C:\Users\virens\.android\debug.keystore" -storepass android -keypass android

jdk 1.6

keytool  -list -alias androiddebugkey -keystore "C:\Users\virens\.android\debug.keystore" -storepass android -keypass android
other platform

  • Windows Vista: C:\Users\<user>\.android\debug.keystore
  • Windows XP: C:\Documents and Settings\<user>\.android\debug.keystore
  • OS X and Linux: ~/.android/debug.keystore


3.Open below url and create account.Paste that md5 signature. 






Note : 

Android Invalid Map API Key


I'm willing to bet that you have JDK 7. JDK 7 seems to be returning the SHA1 finger print. If you want thMD5 has, throw a -v in there.
content -->