使用google map api v2时无法显示地图?

时间:2015-05-04 06:53:57

标签: android google-maps

我点这个链接:Here

但是当我在我的设备中运行时。无法显示地图。它只是在左边显示带有徽标谷歌的白色屏幕。

有些人可以帮我吗?抱歉,因为我的英文。

1 个答案:

答案 0 :(得分:0)

创建调试API密钥和Release API密钥。

第1步:

In Commend Prompt

Now locate to jdk in C drive(Considering for windows and assigning C drive)

C:\Program Files\Java\jdk1.7.0\bin>keytool -list -v -keystore E:\A.keystore -alias A

So it will create SHA-1 finger print.

A.keystore是一个密钥库,用于调试C:\Users\User\.android文件名为debug.keystore的文件,对于发布,您创建了密钥库文件。

第2步

Go to google api console.
Generate new api key for android you have to used this SHA-1 and current playstore package name.
Put Api key into your map.