Error in cmd prompt for getting MD5 fingerprint

白昼怎懂夜的黑 提交于 2019-12-13 02:18:44

问题


I want to get MD5 finger print in Android for google map, but when I try to run it in a command window it shows the message below. How do I overcome this problem?

Command Line:

C:\>C:\Program Files\Java\jre6\bin>keytool.exe -list -alias androiddebugkey -key
store C:\Documents and Settings\Saurabh\.android\debug.keystore -storepass andro
id -keypass android

Error:

'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

回答1:


use this simple command keytool -list -keystore "C:\Documents and Settings\Saurabh.android\debug.keystore"..

Thats it.. Enter twice..




回答2:


Use

C:>cd C:\Program Files\Java\jre6\bin 

first and then from bin, execute the ketool.exe the command for it is:

keytool -list -alias androiddebugkey -key store C:\Documents and Settings\Saurabh.android\debug.keystore -storepass andro id -keypass android



回答3:


Check whether the path C:\Documents and Settings\Saurabh contains a folder .android. If not, choose the path that contains .android ( if you dont know where, then if you are using eclipse, go to Window->Preferences->Android->Build and check Default debug keystore path and give that instead of C:\Documents and Settings\Saurabh.android\debug.keystore

running the following code should get you the MD5 fingerprint if you are giving the right debug keystore path... note that there is a '\' before .android which you had missed in the previous posts

C:\Program Files\Java\jre6\bin>keytool -list -alias androiddebugkey -keystore C:\Documents and Settings\Saurabh.android\debug.keystore -storepass andro id -keypass android



来源:https://stackoverflow.com/questions/5932759/error-in-cmd-prompt-for-getting-md5-fingerprint

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!