SDK编译运行时出现的Unexpected value from nativeGetEnabledTags: 0刷屏解决方法

SDK编译运行时出现的Unexpected value from nativeGetEnabledTags: 0刷屏解决方法

原文地址:

http://stackoverflow.com/questions/13416142/unexpected-value-from-nativegetenabledtags-0


解决方法1:

I just ran into this problem, too. As a workaround I'm filtering the LogCat output with the following expression on the by Log Message field of the filter:

^(?!.*(nativeGetEnabledTags)).*$ 

Otherwise it is so spammed it's almost useless.

Following Laksh suggestion, if you want to filter this always without having to always write it on the Search for messages field:

  1. Goto your Logcat
  2. In the Saved Filters part on the left, click on Edit selected logcat filter (If Saved Filters is not visible then click on Display Saved Filters View in the Logcat)
  3. There in the by Log Message field enter ^(?!.(nativeGetEnabledTags)).$.
原文中被采纳答案,
总结一下就是 打开你的logcat 创建过滤关键字的filter
过滤关键字: ^(?!.*(nativeGetEnabledTags)).*$


解决方法2:

I was getting lots of similar messages, so I needed better filters. Add these filters to the LogCat:

By log tag:

^(?!.*(GN_FW_TextView|GN_FW_Editor|SurfaceTextureClient|skia|AbsListView|Provider/Settings|InputMethodManager|jdwp)).*$

By log message:

^(?!.*(nativeGetEnabledTags)).*$

其实这个方法就是方法1想上的改进,
添加log tag:
^(?!.*(GN_FW_TextView|GN_FW_Editor|SurfaceTextureClient|skia|AbsListView|Provider/Settings|InputMethodManager|jdwp)).*$


解决方法3:

I have added the ^(?!.*(nativeGetEnabledTags)).*$ filter, but you can see how few it helps me:

enter image description here

from 1157 is filtered a few and 799 bypassed same ratio, but a bit bigger numbers:

enter image description here

I needed to add the "SpamFilter" to be able to use the Logcat:

enter image description here

by Log Tag:

 ^(?!Trace|ADB_SERVICES|BufferQueue|wpa_supplican|SurfaceFlinger|Settings/BW|Bluetooth HS/HF)

by Application Name:

^(?!com.android.systemui|system_process)

For me it made a bit usable the Logcat.


这个是一个比较聪明的方法,具体实现理论(抱歉,E文以及编程理论太肤浅,目前不太懂)

大致的意思就是他有一个过滤关键字为^(?!.*(nativeGetEnabledTags)).*$的filter

但是这个刷屏不是一个纯bug.你可以看看他什么时候在帮助我们;

设置方法很简单,依旧是logcat的filter

Log Tag设置为:

 ^(?!Trace|ADB_SERVICES|BufferQueue|wpa_supplican|SurfaceFlinger|Settings/BW|Bluetooth HS/HF)
Application Name设置为:

^(?!com.android.systemui|system_process)




  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值