生成谷歌地图发布 API 密钥 [英] Generating Google map Release API Key

查看:41
本文介绍了生成谷歌地图发布 API 密钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用使用谷歌地图,我注册了谷歌地图密钥进行调试,它有效.但是现在,在发布之前,我需要一个处于发布模式的 Google 地图密钥.我怎样才能得到它?

My app uses Google Maps, I signed up for a Google Maps key to debug, it worked. But now, I need a Google Maps key in release mode, before publishing. How can I get it?

推荐答案

您需要:

  1. 使用 Keytool 创建您自己的用于发布的签名密钥:http://developer.android.com/guide/publishing/app-signing.html#cert

获取新生成的密钥的 MD5 指纹:https://developers.google.com/maps/documentation/android/mapkey#getfingerprint

Get the MD5 fingerprint of your newly generated key : https://developers.google.com/maps/documentation/android/mapkey#getfingerprint

向此链接提交签名以获取您的 Google 地图密钥:https:///developers.google.com/android/maps-api-signup?hl=fr

Submit the signature to this link to get your Google Maps key : https://developers.google.com/android/maps-api-signup?hl=fr

在 Eclipse 中使用新创建的密钥导出您的应用程序:右键单击您的项目 -> Android 工具 -> 导出已签名的应用程序包.

Export your application with your newly created key, in Eclipse : right click on your projet -> Android Tools -> Export signed application package.

请小心将您的证书保存在安全的地方,因为如果您想在 Google Play 上发布应用更新,您将需要它.

Be careful to keep your certificate in a safe place, because you will need it if you want to publish an update of your app on Google Play.

对于 Google Maps Android V2,签名略有不同.您将需要获取 SHA-1 签名并提供应用程序的包名称.此外还需要一个 Google API 帐户.此页面上提供了所有信息:https://developers.google.com/maps/文档/android/start?hl=fr#the_google_maps_api_key

For the Google Maps Android V2, the signing is a little different. You will need to get the SHA-1 signature and provide the package name of your application as well. A Google APi account is moreover needed. All info are given on this page : https://developers.google.com/maps/documentation/android/start?hl=fr#the_google_maps_api_key

这篇关于生成谷歌地图发布 API 密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆