1

Having overcome my earlier problem, I am still having difficulty generating an MD5 fingerprint for Android from the command line. Can anybody tell me what I'm doing wrong?

Command line:

C:\Program Files\Java\jdk1.6.0\bin>keytool.exe -list -alias androiddebugkey -keystore C:\Documents and Settings\Saurabh.android\debug.keystore -storepass android -keypass android

Error:

**Illegal option:  -key
Try keytool -help**
Community
  • 1
  • 1
SRam
  • 2,832
  • 4
  • 45
  • 72
  • solution is here : http://stackoverflow.com/questions/6305938/how-can-i-get-the-md5-fingerprint-from-javas-keytool-not-only-sha-1 – tutalia Jan 17 '12 at 16:03

2 Answers2

4

It's probably that you mistyped the path. I guess your command should look like

C:\Program Files\Java\jdk1.6.0\bin>keytool.exe -list -alias androiddebugkey -keystore "C:\Documents and Settings\Saurabh\.android\debug.keystore" -storepass android -keypass android

The difference is in the slash before .android\debug.keystore and the quotes around the path containing spaces.

Ilya Saunkin
  • 18,934
  • 9
  • 36
  • 50
  • @saounkine when i write this and press enter it shows a prompt message that...C:\Program Files\Java\jdk1.6.0\bin>keytool.exe is not a valid win32 application and when i pree OK on it ..it shows..access is denied.. – SRam May 09 '11 at 06:20
1

Same problem. I couldn't get MD5 key in JDK1.7 (Keytool on JDK 1.7 always return SHA1 key) . I removed JDK 1.7 then installed JDK 1.6, the problem wasn't exist any more.

Nguyen Minh Binh
  • 23,891
  • 30
  • 115
  • 165
  • hey refer to this link it may solve ur problem http://www.androidpeople.com/android-google-map-application-example :) – SRam Jul 30 '11 at 12:55
  • The problem is that keytool return SHA1 key insted of MD5 key. So, when I pass this key to Google Map API signup page (my purpose is to register to use google map api). – Nguyen Minh Binh Jul 30 '11 at 15:50
  • 1
    No Need to Down grade Java Version you can get MD5 Key for JRE-7 [here](http://www.google.co.in/url?sa=t&rct=j&q=md5%20key%20in%20android&source=web&cd=3&ved=0CDQQFjAC&url=http%3A%2F%2Fvenomvendor.blogspot.com%2F2012%2F01%2Fcreating-md5-key-for-android.html&ei=_lQuT62EIsXsrAeW59WlAw&usg=AFQjCNFU8f_vN611babcqBU8QdZ3JC_lQA&cad=rja) – VenomVendor Feb 05 '12 at 10:12