Android logcat充斥着“W / Google Maps Android API:GLHudOverlay弃用; draw():no-op“ [英] Android logcat is flooded with "W/Google Maps Android API: GLHudOverlay deprecated; draw(): no-op"
问题描述
当我在Google Maps片段的活动上拖动地图时,我的logcat充满了
$ b
W / Google Maps Android API:GLHudOverlay不推荐使用; draw():no-op。
Google地图版本build.gradle(应用):
compile'com.google.android.gms:play-services-maps:9.2.1'
UPDATE(2016年9月26日):
我只是在play-services-maps 9.6.1
$ b
compile'com.google.android.gms:play-services-maps:9.6.1'
我认为它是一个渲染时间日志。没有与java代码连接。我也有相同的日志。我感觉它的原因是: SupportMapFragment 在xml文件中。当我触摸Map时,GL呈现布局并打印此日志。
它位于Map Library中。所以我们不能修改它。但我认为有时它会导致内存过载。所以系统调用GC来转储内存。
这只是一个警告。所以现在就忽略它。但它应该由谷歌地图库制造商修复。
版(2016年8月1日):现在它已成为一个已知问题,将在下一个Google Play库版本中解决。 ref
版本(2016年8月2日):Play服务地图更新为 9.2.1 - > 9.4.0 ,但警告信息仍然存在。版本(2016年8月5日):修正不在9.4,但将在即将发布的版本中 ref
注意:同样的消息,我发现一个招数此处。
When I drag Maps on activity having Google Maps fragment, my logcat is flooded with
"W/Google Maps Android API: GLHudOverlay deprecated; draw(): no-op".
Google Maps version build.gradle (app):
compile 'com.google.android.gms:play-services-maps:9.2.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'
The issue 10201 is closed and release notes here
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.
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.
Edition (1st August, 2016) : now its a known issue and will be solve in next Google Play Library release. ref
Edition (2nd August, 2016) : got an update to play-services-maps as 9.2.1 -> 9.4.0, but warning message still there.
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弃用; draw():no-op“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!