尝试获取 Android 版 API 密钥时 Google 地图出错
keytool -list -alias androiddebugkey -keystore "C:\Users\hp\.android\debug.keystore" -storepass android -keypass android
这就是我在 Windows 7 上输入命令的内容,我不断收到回复“keytool 不被识别为内部或外部命令、可操作程序或批处理文件。” =不确定是否需要再次安装andriod,或者我是否错过了输入内容
keytool -list -alias androiddebugkey -keystore "C:\Users\hp\.android\debug.keystore" -storepass android -keypass android
thats what i type into my command, on windows 7 and i keep getting the reply "keytool is not recognised as an internal or external command, operable program or batch file."
=S not sure weather to install andriod again or if ive miss typed something
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
keytool
实用程序不是 Android SDK 的一部分,而是 Java JDK 的一部分。看来您的
PATH
中可能没有 JDKbin/
目录。在命令提示符下,尝试浏览到目录C:\Program Files (x86)\Java\jdk#\bin
(# 是您安装的 jdk 版本),然后运行命令。注意:如果您使用的是 jdk 1.7.0,您可能需要向 keytool 添加
-v
选项,因为它默认不提供 MD5,仅提供 SHA。The
keytool
utility is not part of the Android SDK, but the Java JDK.It appears you may not have your JDK
bin/
directory in yourPATH
. While in a command-prompt, try browsing to the directoryC:\Program Files (x86)\Java\jdk#\bin
(# is your jdk version installed) then running the command.Note: If you are using jdk 1.7.0 you may need to add the
-v
option to keytool as it doesn't give MD5 by default, only SHA.