Android logcat 充斥着“W/Google Maps Android API:不推荐使用 GLHudOverlay;绘制():无操作" [英] Android logcat is flooded with "W/Google Maps Android API: GLHudOverlay deprecated; draw(): no-op"

查看:15
本文介绍了Android logcat 充斥着“W/Google Maps Android API:不推荐使用 GLHudOverlay;绘制():无操作"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在具有 Google 地图片段的活动中拖动地图时,我的 logcat 被

When I drag Maps on activity having Google Maps fragment, my logcat is flooded with

W/Google 地图 Android API:不推荐使用 GLHudOverlay;draw():无操作".

"W/Google Maps Android API: GLHudOverlay deprecated; draw(): no-op".

Google 地图版本 build.gradle(应用):

Google Maps version build.gradle (app):

编译'com.google.android.gms:play-services-maps:9.2.1'

推荐答案

更新(2016 年 9 月 26 日):我刚刚检查了 play-services-maps 9.6.1

UPDATE (26th September 2016): I just checked the fix in play-services-maps 9.6.1

compile 'com.google.android.gms:play-services-maps:9.6.1'

问题 10201 已关闭 和发行说明此处

The issue 10201 is closed and release notes here

我认为它是一个渲染时间日志.与java代码没有联系.我也有同样的日志.我觉得它的原因是:SupportMapFragment 在 xml 文件中.当我触摸地图时,GL 渲染布局并打印此日志.

I think its a render time log. No connection with java code. I also have same log. and i feel its cause by : SupportMapFragment in xml file. When i touch Map, GL render layout and prints this log.

它在地图库内.所以我们不能修改它.但我认为有时它会导致内存过载.所以系统调用GC来转储内存.

It is inside Map Library. So we can't modify it. but i think sometimes it cause memory overload. and so system calls GC to dump memory.

这只是一个警告.所以暂时忽略它.但它应该由谷歌地图库制造商修复.

It's just a warning. So ignore it for now. but it should be fix by Google map library maker.

版本(2016 年 8 月 1 日):现在是一个已知问题,将在下一个 Google Play 库版本中解决.ref

Edition (1st August, 2016) : now its a known issue and will be solve in next Google Play Library release. ref

版本(2016 年 8 月 2 日):将 play-services-maps 更新为 9.2.1 -> 9.4.0,但警告消息仍然存在.

Edition (2nd August, 2016) : got an update to play-services-maps as 9.2.1 -> 9.4.0, but warning message still there.

版本(2016 年 8 月 5 日):修复不在 9.4 中,但将在即将发布的版本中提供 ref

Edition (5th August, 2016) : the fix is not in 9.4 but will be in an upcoming release ref

注意:为了隐藏一堆相同的消息,我在这里找到了一个技巧.

Note : for hide bunch of same messages i found one trick here.

这篇关于Android logcat 充斥着“W/Google Maps Android API:不推荐使用 GLHudOverlay;绘制():无操作"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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