尝试获取我的 Android API 密钥时出现 Google 地图错误 [英] Google maps error when trying to get my API Key for android
问题描述
keytool -list -alias androiddebugkey -keystore "C:\Users\hp\.android\debug.keystore" -storepass android -keypass android
这就是我在命令中输入的内容,在 Windows 7 上,我不断收到回复keytool 未被识别为内部或外部命令、可运行的程序或批处理文件."=S 不确定天气是否再次安装 andriod 或者我是否错过了输入内容
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
推荐答案
keytool
实用程序不是 Android SDK 的一部分,而是 Java JDK.
The keytool
utility is not part of the Android SDK, but the Java JDK.
看起来您的 PATH
中可能没有 JDK bin/
目录.在命令提示符下,尝试浏览目录 C:\Program Files (x86)\Java\jdk#\bin
(# 是您安装的 jdk 版本)然后运行命令.
It appears you may not have your JDK bin/
directory in your PATH
. While in a command-prompt, try browsing to the directory C:\Program Files (x86)\Java\jdk#\bin
(# is your jdk version installed) then running the command.
注意:如果您使用的是 jdk 1.7.0,您可能需要在 keytool 中添加 -v
选项,因为它默认不提供 MD5,仅提供 SHA.
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.
这篇关于尝试获取我的 Android API 密钥时出现 Google 地图错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!