尝试获取调试证书的 MD5 指纹,出现错误
在 keytool 目录中,我按照 Google 代码网站的指示输入我应该输入的内容。 要生成调试证书的 MD5 指纹,请首先找到调试密钥库。默认情况下,构建工具在活动 AVD 目录中创建调试密钥库。 AVD 目录的位置因平台而异:
CMD 中的我的代码:
C:\Program Files\Java\jdk1.6.0_23\bin>keytool -list -alias androiddebugkey -keys 撕掉 C:\Documents and Settings\nwashington.android\debug.keystore -storepass an droid -keypass android
我的错误:
keytool 错误:java.lang.RuntimeException:使用错误,并且不是合法命令
我已经检查过:
-如果文件实际上位于这些目录中
-尝试了此网站: http://remwebdevelopment.com /dev/a35/Android-How-To-Set-Up-an-API-Key-for-Google-Maps.html
请帮忙! 谢谢
While in the keytool directory I type in what I am supposed to as instructed by the Google code website.
To generate an MD5 fingerprint of the debug certificate, first locate the debug keystore. By default, build tools create the debug keystore in the active AVD directory. The location of the AVD directories varies by platform:
MY CODE IN CMD:
C:\Program Files\Java\jdk1.6.0_23\bin>keytool -list -alias androiddebugkey -keys
tore C:\Documents and Settings\nwashington.android\debug.keystore -storepass an
droid -keypass android
MY ERROR:
keytool error: java.lang.RuntimeException: Usage error, and is not a legal command
I have already checked:
-If the files are actually located in these directories
-Tried out this website: http://remwebdevelopment.com/dev/a35/Android-How-To-Set-Up-an-API-Key-for-Google-Maps.html
Please Help!
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
确保将调试密钥库的路径放在引号中,因为 Windows 无法识别“文档和设置”中的空格。您的命令应如下所示:
keytool -list -alias androiddebugkey -keys tore "C:\Documents and Settings\nwashington.android\debug.keystore" -storepass an droid -keypass android
按原样复制并将其粘贴到你的命令提示符。应该可以跑吧!!!!
Make sure that you put the path to your debug keystore in quotes because Windows does not recognise spaces in Documents and Settings. Your command should be like this:
keytool -list -alias androiddebugkey -keys tore "C:\Documents and Settings\nwashington.android\debug.keystore" -storepass an droid -keypass android
Copy it just the way it is and paste it in your command prompt. It should be able to run !!!!