android开发,实现谷歌地图

发布于 2024-09-25 10:47:30 字数 616 浏览 1 评论 0原文

直接来自 http://code.google.com/android/add -ons/google-apis/mapkey.html 它说:

要注册地图 API 密钥,您需要提供用于签署应用程序的证书的 MD5 指纹。在访问注册页面之前,请使用Keytool生成相应证书的指纹。 首先,确定在发布时使用哪个密钥对应用程序进行签名,并确保包含该密钥的密钥库的路径。 接下来,针对目标密钥库和密钥别名运行带有 -list 选项的 Keytool。下表列出了您应该使用的选项。

我不明白执行此操作的说明。我在终端上尝试使用:

keytool -genkey -v -keystore microjobs.keystore -alias mjkey -keyalg RSA

并输入名称和城市状态,然后:

keytool -list

但它返回:

keytool 错误:java.lang.Exception:密钥库文件存在,但为空:

我应该做什么?

谢谢。

straight from http://code.google.com/android/add-ons/google-apis/mapkey.html it says:

To register for a Maps API Key, you need to provide an MD5 fingerprint of the certificate that you will use to sign your application. Before you visit the registration page, use Keytool to generate the fingerprint of the appropriate certificate.
First, determine which key you will use to sign your application at release and make sure of the path to the keystore that contains it.
Next, run Keytool with the -list option, against the target keystore and key alias. The table below lists the options you should use.

I dont understand the directions to do this. I tried on the terminal using:

keytool -genkey -v -keystore microjobs.keystore -alias mjkey -keyalg RSA

and entered name, and city state then:

keytool -list

but it returns:

keytool error: java.lang.Exception: Keystore file exists, but is empty:

What should i do?

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

岛徒 2024-10-02 10:47:30

可能是文件夹的访问问题?

另外,稍后在您在问题中引用的页面中,如果您查看 此处,Eclipse 可以帮助您生成并找到您的 API 密钥。

Might be an access problem to the folder ?

Also, later in the page you reference in your question, if you look here, Eclipse can help you generate and locate your API key.

少钕鈤記 2024-10-02 10:47:30

导航到包含密钥库文件的文件夹,然后运行

keytool -list -alias your_alias -keystore your_file_name

,其中 your_file_name 只是文件名,不带路径。

Navigate to the folder containing the keystore file, and then run

keytool -list -alias your_alias -keystore your_file_name

where your_file_name is just the file name, without path.

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