您的位置:首页 > 产品设计 > UI/UE

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

2014-06-08 22:15 375 查看
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:

Goto your 
Logcat


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)

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:



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



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



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)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  sdk 编程 filter tag
相关文章推荐