我有一个包含地图的Android应用程序,在使用版本4或4.4的设备上进行测试时效果很好,但是当它在带有Lollipop的设备上加载时会显示灰色地图。 logcat中没有报告错误,问题与API密钥无关,因为如果我更改它,我会得到一个输出错误。谷歌播放服务库已在所有设备中安装和更新。
logcat的内容是:
11-06 09:23:40.880 3895-3895/it.univr.veronapp I/Google Maps Android API﹕ Google Play services package version: 8301270
11-06 09:23:40.908 3895-4250/it.univr.veronapp D/﹕ HostConnection::get() New Host Connection established 0x98045be0, tid 4250
11-06 09:23:44.932 3895-3949/it.univr.veronapp D/Volley﹕ [316] a.a: HTTP response for request=<[ ] https://csi.gstatic.com/csi?s=maps_android_api&v=3&action=map_start_up&it=map_load.712,on_create.1,on_resume.1,init.5&irt=712,6,8,5 0x4d844933 NORMAL 10> [lifetime=3339], [size=0], [rc=204], [retryCount=0]
11-06 09:23:44.933 3895-3895/it.univr.veronapp D/Volley﹕ [1] p.b: 3340 ms: [ ] https://csi.gstatic.com/csi?s=maps_android_api&v=3&action=map_start_up&it=map_load.712,on_create.1,on_resume.1,init.5&irt=712,6,8,5 0x4d844933 NORMAL 10
11-06 09:23:49.854 3895-3952/it.univr.veronapp D/Volley﹕ [319] a.a: HTTP response for request=<[ ] https://clients4.google.com/glm/mmap/api 0x99e6744e NORMAL 11> [lifetime=6931], [size=135887], [rc=200], [retryCount=0]
11-06 09:23:49.855 3895-3895/it.univr.veronapp D/Volley﹕ [1] p.b: 6931 ms: [ ] https://clients4.google.com/glm/mmap/api 0x99e6744e NORMAL 11