获取MD5指纹cmd提示错误
我想在 Android 中获取 Google 地图的 MD5 指纹,但是当我尝试在命令窗口中运行它时,它会显示以下消息。我该如何克服这个问题?
命令行:
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
错误:
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
先使用
,然后从bin中,执行ketool.exe
它的命令是:
Use
first and then from bin, execute the ketool.exe
the command for it is:
使用这个简单的命令
keytool -list -keystore "C:\Documents and Settings\Saurabh.android\debug.keystore"..
就是这样.. 输入两次..
use this simple command
keytool -list -keystore "C:\Documents and Settings\Saurabh.android\debug.keystore"..
Thats it.. Enter twice..
检查路径C:\Documents and Settings\Saurabh是否包含文件夹.android。如果没有,请选择包含 .android 的路径(如果您不知道在哪里,那么如果您使用的是 eclipse,请转到 Window->Preferences->Android->Build 并选中 Default debug keystore path 并给出该路径,而不是 如果您提供正确的调试密钥库路径,则运行以下代码的 C:\Documents and Settings\Saurabh.android\debug.keystore
应该会为您提供 MD5 指纹...请注意,您所拥有的 .android 之前有一个 '\'之前的帖子中错过了
C:\Program Files\Java\jre6\bin>keytool -list -alias androiddebugkey -keystore C:\Documents and Settings\Saurabh.android\debug.keystore -storepass andro id -keypass android
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