解決ADT大量出現"Unexpected value from nativeGetEnabledTa

安裝了最新版的Android SDK (r21) 和ADT 21.0.0,在虛擬機運行程序時忽然發現一個現象,原來運行很正常的程序,如今在logcat中不斷的發送如下消息:
Unexpected value from nativeGetEnabledTags: 0


此消息大量出現以至於我正常的消息都徹底被淹沒了。在網上查了一下,原來是API 17的虛擬機會有這個問題: android

Project Member #31 r...@android.com
As indicated above, we're aware of the issue. It's an issue in the emulator system-image for API 17. We plan to distribute a new system-image for 17 that will resolve this, but I don't have any hard date to announce.

Workarounds in between are to use the emulator with API 16 (doesn't help if you need the APIs for 17 of course) or use a real device such as N4 or N7 or N10 that has API 17 on it.

後來在網上找到一個解決辦法:在logcat的過濾器的log message字段中輸入如下過濾串。 this

^(?!.*(nativeGetEnabledTags)).*
解決ADT大量出現"Unexpected <wbr>value <wbr>from <wbr>nativeGetEnabledTags: <wbr>0"的問
相關文章
相關標籤/搜索