Unexpected value from nativeGetEnabledTags: 0
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:
Unexpected value from nativeGetEnabledTags: 0
I googled it, and I found Issue 39723: Emulator spams LogCat with "Unexpected value from nativeGetEnabledTags: 0" message.
What does it mean?
Solution 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 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)).*$
.
Solution 2:
It's a bug in the emulator System Image for API 17.
At the moment, your workarounds are the following:
If you DON'T need API level 17
- Use an emulator with API 16 (or lower)...
- ...or higher (API 19 for instance, tested to solve the problem too).
If you DO need API level 17
- Use a real device: Nexus 4, Nexus 7, Nexus 10.
- Use the LogCat filter suggested by Hendrik. You'll have to edit every single filter you have, though (If you want to fix them all).
Solution 3:
The link which you referred to has the answer. It is a bug introduced in the latest revision of the tools. In the followup comments you can read that a google representative says a fix is on the way.