如何获得在Android的谷歌地图apikey如何获得、地图、Android、apikey

2023-09-04 03:04:36 作者:爷的拽,只为你

你好当时工作的谷歌地图。我想在我的活动显示地图。我成功地显示在地图视图。但我不能显示在地图上,我认为我有错的API密钥我这样怎么能得到的谷歌地图API密钥。我创建了密钥库和所有的程序,但我没有想法如何得到这个密钥库的API密钥。

Hi At that time working on google map. I want to display map in my activity. I successfully display the map view. But i cant show the map i think i have wrong api key so how can i get api key of google map. I create the keystore and all procedure but i didn't have idea how to get api key from this keystore.

我也给了所有权限清单文件,并添加了谷歌地图的库比我还不能显示出map.in活动还延伸mapactivity也写code来回地图XML。

I also give the all permission in manifest file and also add the google map library than also i cant show the map.in activity also extends mapactivity and also write code fro map in xml.

如果有人知道关于请告诉我。

If anyone knows about that please tell me.

推荐答案

如果您已经有钥匙拿到下面的链接,并随着你的android项目包名称添加指纹

If you already have the key got the link below and add the fingerprint along with your android project package name

您还需要登录到您的谷歌帐户

You also need to login to your google account

的https://$c$c.google.com/apis/console

点击上创建新的密钥。加入指纹以及您的Andr​​oid项目包的名字。

Click on create new key. Add the fingerprint along with your android project package name.

您可以看到API密钥上述

You can see the api key above

启用从服务选项卡上谷歌地图API第2版。

Enable google map api v2 from services tab.

然后在根据应用程序标记清单文件

Then in manifest file under application tag

 <meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="my key"/>