从nativeGetEnabledTags意外的值:0 [英] Unexpected value from nativeGetEnabledTags: 0
问题描述
我安装了最新版本的SDK(R21)和ADT 21.0.0。我想简单的code,和它的作品很好,但现在我得到的 LogCat中未出现在previous版本:
I installed the latest version of the SDK (r21) and ADT 21.0.0. I tried simple code, and it works well, but now I get a warning in LogCat that did not appear in the previous versions:
从nativeGetEnabledTags意外的值:0
Unexpected value from nativeGetEnabledTags: 0
我GOOGLE了它,我发现的 问题39723:模拟器垃圾邮件LogCat中以从nativeGetEnabledTags意外的值:0消息 的
I googled it, and I found Issue 39723: Emulator spams LogCat with "Unexpected value from nativeGetEnabledTags: 0" message.
这是什么意思?
推荐答案
我只是碰到了这个问题了。作为一种变通方法,我过滤 LogCat中
输出上的通过日志信息
字段中输入以下EX pression过滤器:
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.
继 Laksh 的建议,如果你想,而不必总是在<$ C $写它总是过滤该C>搜索消息字段:
Following Laksh suggestion, if you want to filter this always without having to always write it on the Search for messages
field:
- 转到您的
的logcat
- 在左边的
保存的过滤器
部分,点击编辑选择logcat的过滤器
(如果保存的过滤器是不可见然后点击显示保存的过滤器视图在logcat中) - 在那里,在通过日志消息字段中,键入
^(?!。*(nativeGetEnabledTags))。* $
。
- Goto your
Logcat
- In the
Saved Filters
part on the left, click on theEdit 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)).*$
.
这篇关于从nativeGetEnabledTags意外的值:0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!