Getting grid view in google maps

我只是一个虾纸丫 提交于 2019-12-11 07:42:36

问题


Here I write some application, which shows my location.

In the emulator I get this:

But in device I see this:

I connect through wifi, hence there's no problem with internet, it should have opened the map.

What is the reason? How can I solve this?

Thanks.

Addition

I just regenerated my API key with keytool. Got the same key I had before.

Still the same view in the phone.


回答1:


Its Google map API key issue you have to re-generate the API key using the keystore which you are using to export your apk.

Here is how to generate your Maps API Key for final release.




回答2:


Try opening the default google map application on the device and see if you can load up the map. If you can't then there is some problem with the connectivity. If it is opening the default application then the issue could be of the API key for google maps




回答3:


Add to manifest:

<uses-permission android:name="android.permission.INTERNET"/>


来源:https://stackoverflow.com/questions/10520791/getting-grid-view-in-google-maps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!