尝试获取 Android 版 API 密钥时 Google 地图出错

发布于 2024-12-22 17:44:38 字数 262 浏览 3 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

月隐月明月朦胧 2024-12-29 17:44:38

keytool 实用程序不是 Android SDK 的一部分,而是 Java JDK 的一部分。

看来您的 PATH 中可能没有 JDK bin/ 目录。在命令提示符下,尝试浏览到目录 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 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.

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文