谷歌地图不显示任何瓷砖,在开发设备工作正常 [英] Google Maps does not display any tiles, works fine in developer device

查看:121
本文介绍了谷歌地图不显示任何瓷砖,在开发设备工作正常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发一个Android应用程序与谷歌地图。地图做工精细,当我检查了我的设备,甚至是模拟器。但是,当我将它交付给客户,他只说:没有瓷砖显示,刚刚网格线和谷歌徽标位于左下方。什么地方出错了?

I developed an Android application with Google Maps. Maps work fine when I checked with my device, or even emulator. But when I delivered it to client he says only "no tiles displaying, just grid lines and Google logo at bottom left". What could be wrong?

推荐答案

那是因为你没有得到正确的API密钥的谷歌小工具地图。

That's because you haven't got the right API KEY for the Google maps widget.

当您注册该应用程序,您必须使用相同的密钥库,并获得API密钥。你得到的MD5指纹识别您所使用的签名应用到这里的密钥库,的 HTTP://$c$c.google.com/android/maps-api-signup.html 把指纹并获得API密钥,然后在地图窗口小部件,

When you sign the application, you have to use the same keystore and obtain an API key. You get the MD5 fingerprint of the keystore you are using to sign the application go here, http://code.google.com/android/maps-api-signup.html put the finger print and get the API key, then in your maps widget,

<?xml version="1.0" encoding="utf-8"?>
    <com.google.android.maps.MapView
        android:id="@+id/mapView" android:layout_width="fill_parent"
        android:layout_height="fill_parent" android:apiKey="0G0LHKCCJvhmNvdpZijAqg76V63Cs6DTBbq2-Pw"
        android:enabled="true" android:clickable="true" />

API_KEY

这篇关于谷歌地图不显示任何瓷砖,在开发设备工作正常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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