从nativeGetEnabledTags意外的值:0意外、nativeGetEnabledTags

2023-09-11 11:52:19 作者:丶迷失在红唇

我安装了最新版本的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 的建议,如果你想,而不必总是在搜索消息字段:

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 the 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)).*$.