生成谷歌地图发布API密钥密钥、地图、API

2023-09-12 04:12:40 作者:别丢下我好吗

我的应用程序使用谷歌地图,我注册了一个谷歌地图的关键调试,它的工作。但现在,我需要在释放模式一个谷歌地图的关键,发布之前。我怎样才能得到它?

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?

推荐答案

您需要:

创建将用于出版,使用的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

提交签名这个环节,让您的谷歌地图键: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.

小心将您的证书在安全的地方,因为你会需要它,如果你想发布您的应用程序在谷歌播放的最新情况。

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.

编辑:

有关谷歌地图Android的V2,签约是一个有点不同。您将需要获得SHA-1的签名,并提供应用程序的包名称。谷歌的APi的帐户而且必要的。所有的信息都给出此页上:https://developers.google.com/maps/documentation/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