Google Maps,system_process E / LocSvc_eng_nmea:I /< === nmea_cb line 62 [英] Google Maps, system_process E/LocSvc_eng_nmea: I/<=== nmea_cb line 62

查看:617
本文介绍了Google Maps,system_process E / LocSvc_eng_nmea:I /< === nmea_cb line 62的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题基本上与此问题相同多年前,但这个问题的唯一答案并不奏效。所以我再次问这个。



我的配置如下。

  implementation'com.google.android.gms:play-services-maps:11.8.0'
compile'c​​om.google.maps.android:android-maps-utils:0.5'
targetSdkVersion 27
compileSdkVersion 27
buildToolsVersion27.0.3

主要活动包含标签哪一个是片段。其中一个片段包含Google Maps,它本身就是一个片段。

 < fragment 
android:id = @ + id / mapView
android:name =com.google.android.gms.maps.SupportMapFragment

它可以正常工作,但是当我看到带有No Filters的日志时,会出现奇怪的红色日志泛滥。

  system_process E / LocSvc_eng_nmea:I / <=== nmea_cb第62行[十六进制值] 
system_process E / LocSvc_eng_nmea:I /< === nmea_cb第62行[十六进制值]

我已经在上述问题中尝试了答案,并将片段更改为FrameLayout并将其替换为SupportMapView在运行时,但日志没有消失。

  var mapFragment = SupportMapFragment.newInstance(); 
this.childFragmentManager.beginTransaction()
.replace(R.id.mapView,mapFragment)
.commit();

如何防止错误记录?

PS:当我创建一个示例应用程序并将支持地图片段直接添加到主活动时,错误消息没有发生。所以我认为它与片段有关。



PS2:它可能与片段无关,因为我更改了示例应用程序并将片段放置在另一个片段中,但日志没有发生。我尝试了一些东西,但未能在示例应用程序中重现问题。



PS3:正在移除isMyLocationEnabled = true;解决了这个问题,但我需要这个功能。

解决方案

日志看起来像来自系统组件,无法控制它。 NMEA很可能与用于与GPS芯片通信的协议相关。请参阅 en.wikipedia.org/wiki/NMEA_0183



解决方案:如果您使用没有位置权限和位置相关功能的地图(例如禁用我的位置蓝点),则该消息将消失。然后,当然,您可能需要此功能,并且提示可能无用,但这是原因。



实用解决方案:因此,如果我选择仅显示选定的应用程序,则不会显示消息。忽略错误是安全的。

My question is basically the same as this question from 4 years ago, but the only answer to the question did not work. So I am asking this again.

My configuration is the followings.

implementation 'com.google.android.gms:play-services-maps:11.8.0'
compile 'com.google.maps.android:android-maps-utils:0.5'
targetSdkVersion 27
compileSdkVersion 27
buildToolsVersion "27.0.3"

The main activity has tabs which of which is a fragment. One of the fragments contain Google Maps, which itself is a fragment.

    <fragment
        android:id="@+id/mapView"
        android:name="com.google.android.gms.maps.SupportMapFragment"

It works fine, but when I see the log with "No Filters" there are strange red logs flooding.

system_process E/LocSvc_eng_nmea: I/<=== nmea_cb line 62 [some hex value]
system_process E/LocSvc_eng_nmea: I/<=== nmea_cb line 62 [some hex value]

I have tried the answer in the question aforementioned, and changed the 'fragment' to a 'FrameLayout' and replaced it with SupportMapView at runtime, but the logs did not disappear.

    var mapFragment = SupportMapFragment.newInstance();
    this.childFragmentManager.beginTransaction()
            .replace(R.id.mapView, mapFragment)
            .commit();

How to prevent the error logs?

PS: When I created a sample application and added a support map fragment directly to the main activity, the error messages did not happen. So I think it has something to do with fragments.

PS2: It may not be related to fragments, because I changed the sample app and placed the map fragment inside another fragment, but the logs did not happen. I have tried some things but failed to reproduce the problem in the sample app.

PS3: Removing isMyLocationEnabled = true; solved the problem, but I need this feature.

解决方案

The logs look like they are from a system component, so you don't have control over it. NMEA is most likely related to the protocol used to communicate with GPS chips. See en.wikipedia.org/wiki/NMEA_0183

Solution: If you use a map without Location permissions and the Location related functionalities (e.g. disabling the "My Location" blue dot) the message will disappear. Then, of course, you may need this functionality and the tip may be useless, but this is the cause.

Practical solution: So, if I choose "Show only selected application" the messages will be not shown. It is safe to ignore the error.

这篇关于Google Maps,system_process E / LocSvc_eng_nmea:I /&lt; === nmea_cb line 62的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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