logcat filled with message “Unexpected value from nativeGetEnabledTags: 0” - how to get rid of this? [duplicate]

匿名 (未验证) 提交于 2019-12-03 02:49:01

问题:

Possible Duplicate:
Unexpected value from nativeGetEnabledTags: 0

I have just installed the latest version of SDK (r21) and ADT 21.0.0. I shifted my project from the eclipse, I was using previously to the newer version. After shifting the project i clicked on the Run button to test the application, and suddenly i found that the whole logcat was filled with the message

Unexpected value from nativeGetEnabledTags: 0

I just 10 minutes the number of this kind of messages reached more than 10,000 and i am fed up with this. Please tell me how can i remove this message from appearing in the logcat. And i want to stop this message from appearing as well

Skipped 33 frames! The application may be doing too much work on its main thread.

Please help.

回答1:

Check this answer: Unexpected value from nativeGetEnabledTags: 0

Add this filter to the LogCat: ^(?!.*(nativeGetEnabledTags)).*$

It is a bug introduced in the latest revision of the tools... Google is working on a fix on the next version.



回答2:

I agree with NeTeInStEiN's answer regarding the nativeGetEnabledTags issue, I have the same problem and the following in the logcat filter works to hide them (as mentioned in comments):

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

With regards to the other issue, I have tracked it down to being an emulator that doesn't have enough ram set to cope with running Jelly-bean (or which ever droid version). When I run my app on the emulator I get slow responses (and that error), when I run it on an actual device I don't see the messages.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!