来自 nativeGetEnabledTags 的意外值:0 [英] Unexpected value from nativeGetEnabledTags: 0

查看:50
本文介绍了来自 nativeGetEnabledTags 的意外值:0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了最新版本的 SDK (r21) 和 ADT 21.0.0.我尝试了简单的代码,它运行良好,但现在我在 LogCat 在以前的版本中没有出现:

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

我用谷歌搜索,我发现问题 39723:模拟器垃圾邮件 LogCat 并带有意外"来自 nativeGetEnabledTags 的值:0" 消息.

I googled it, and I found Issue 39723: Emulator spams LogCat with "Unexpected value from nativeGetEnabledTags: 0" message.

什么意思?

推荐答案

我也刚遇到这个问题.作为一种解决方法,我在过滤器的 by Log Message 字段上使用以下表达式过滤 LogCat 输出:

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 建议,如果您想始终过滤此内容而不必始终将其写在 Search对于消息 字段:

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

  1. 转到您的Logcat
  2. 在左侧的 Saved Filters 部分,单击 Edit selected logcat filter(如果 Saved Filters 不可见,则单击 Display Saved Filters View in the Logcat)
  3. 在按日志消息字段中,输入 ^(?!.*(nativeGetEnabledTags)).*$.
  1. Goto your Logcat
  2. 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)
  3. There, in the by Log Message field, enter ^(?!.*(nativeGetEnabledTags)).*$.

这篇关于来自 nativeGetEnabledTags 的意外值:0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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