本文翻译自:Unexpected value from nativeGetEnabledTags: 0

I installed the latest version of the SDK (r21) and ADT 21.0.0. 我安装了最新版本的SDK(r21)和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: 我尝试了简单的代码,它运行良好,但现在我在LogCat中收到一个警告,该警告没有出现在以前的版本中:

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

I googled it, and I found Issue 39723: Emulator spams LogCat with "Unexpected value from nativeGetEnabledTags: 0" message . 我用Google搜索了,我发现了问题39723:Emulator使用“来自nativeGetEnabledTags:0的意外值”消息阻止LogCat

What does it mean? 这是什么意思?


#1楼

参考:https://stackoom.com/question/uI9O/来自nativeGetEnabledTags的意外值


#2楼

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. 在后续评论中,您可以阅读谷歌代表说修复工作正在进行中。


#3楼

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: 作为一种解决方法,我在过滤器的“ by Log Message字段中使用以下表达式过滤LogCat输出:

^(?!.*(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: 根据Laksh建议,如果您想要过滤此内容,而无需始终将其写在“ Search for messages字段中:

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

#4楼

It's a bug in the emulator System Image for API 17. 这是API 17的仿真器System Image中的一个错误。

At the moment, your workarounds are the following: 目前,您的解决方法如下:

If you DON'T need API level 17 如果您不需要API级别17

  • Use an emulator with API 16 (or lower)... 使用API​​ 16(或更低版本)的仿真器......
  • ...or higher (API 19 for instance, tested to solve the problem too). ...或更高(例如,API 19,经过测试以解决问题)。

If you DO need API level 17 如果你需要API级别17

  • Use a real device: Nexus 4, Nexus 7, Nexus 10. 使用真实设备:Nexus 4,Nexus 7,Nexus 10。
  • Use the LogCat filter suggested by Hendrik. 使用Hendrik建议的LogCat过滤器。 You'll have to edit every single filter you have, though (If you want to fix them all). 但是,您必须编辑您拥有的每个过滤器(如果您想要全部修复它们)。

#5楼

Update the ARM EABI v7a System Image from Android SDK Manager and the warning wont be seen any more .. !! Android SDK Manager更新ARM EABI v7a System Image ,警告将不再被看到.. !! :) :)

Yes. 是。 This works only for ARM EABI System Image and not for Intel image. 这仅适用于ARM EABI System Image,而不适用于Intel映像。

Update 更新

Seems like there is a Update available for the Intel x86 Atom System Image for API 18 which fixes the issue (I have not tried it though). 似乎有一个更新可用于API 18Intel x86 Atom System Image ,它修复了这个问题(尽管我还没试过)。 A link to manually install the system image. 手动安装系统映像的link Ofcourse its also available in Android SDK Manager. 当然它也可以在Android SDK Manager中使用。

But its only for Android 4.3. 但它仅适用于Android 4.3。 The 4.2.x developers might still have to wait for a fix..! 4.2.x开发人员可能仍然需要等待修复..!


#6楼

The problem with Intel x86 Atom images and "nativeGetEnabledTags: 0" is fixed with the release of the Android 4.3 (API 18) Intel x86 Atom image. 随着Android 4.3(API 18)Intel x86 Atom映像的发布,解决了Intel x86 Atom映像和“nativeGetEnabledTags:0”的问题。 I just tested it and can confirm that. 我只是测试了它并且可以确认。

With ARM images this was fixed some time ago, I know ... 使用ARM图像这已经修复了一段时间,我知道......

来自nativeGetEnabledTags的意外值:0相关推荐

  1. 2021-07-27 对labelme标注出来的JSON文件进行灰度图转化(标签值0.1.2.3.4)

    对labelme标注出来的JSON文件进行灰度图转化(标签值0.1.2.3.4) 原图如下: 标注后生成json文件如下: import cv2 import numpy as np import j ...

  2. win7(旗舰版)下,OleLoadPicture 加载内存中的图片(MagickGetImageBlob),返回值 0

    昨天去三哥家,想把拍好的照片缩小一下,我用很久前写的一个软件进行缩小,然后进行一次效果预览,这个时候弹出: Call OleLoadPicture Fail - loadPictureFromMW 奇 ...

  3. 成功解决pywintypes.com_error: (-2147352567, '发生意外。', (0, 'Kingsoft WPS', '文档保存失败。', '', 3011, -214746725

    成功解决pywintypes.com_error: (-2147352567, '发生意外.', (0, 'Kingsoft WPS', '文档保存失败.', '', 3011, -214746725 ...

  4. string[x]:size 属性具有无效大小值0

    SqlParameter[] lists={new SqlParameter("@test",SqlDbType.VarChar),new SqlParameter("@ ...

  5. fread返回值0 feof返回值为16 问题解决。

    写的一个程序,要从二进制文件中读取,但是我读取到11396字节的时候 fread返回0,其feof(fp)==16 百度百科看到: feof(fp)有两个返回值:如果遇到文件结束,函数feof(fp) ...

  6. 问题(ArcGIS):去除栅格不需要的Value(背景值0)

    1.问题所在:我想去除实验结果的背景值,但是尝试过几种方法,不是很好,所以就用以下方法来进行去除背景值0. 2.工具: ArcToolbox--Data Management--Raster--Ras ...

  7. 个体值0和31差多少攻击_个体值 - 神奇宝贝百科,关于宝可梦的百科全书

    IV重定向至此.如果您在寻找与4有关的信息,请移步004. 个体值(日文︰個体(こたい)値(ち),英文︰Individual values,简称IV)是参与决定每只宝可梦能力的一组数值.个体值与生俱来 ...

  8. python win32com (-2147352567, '发生意外。', (0, 'Microsoft PowerPoint 2010

    python (-2147352567, '发生意外.', (0, 'Microsoft PowerPoint 2010 """手动打开ppt,然后再运行代码" ...

  9. 无法以排程方式 执行excel (-2147352567, ‘发生意外。‘, (0, ‘Microsoft Excel‘, ‘抱歉,无法找到 1.xlsx。是否可能被移动、重命名或删除?‘, ‘xl

    错误码 (-2147352567, '发生意外.', (0, 'Microsoft Excel', '抱歉,无法找到 1.xlsx.是否可能被移动.重命名或删除?', 'xlmain11.chm', ...

最新文章

  1. python【蓝桥杯vip练习题库】BASIC-14 时间转换(取余 水题)
  2. 局域网IP-MAC绑定方案
  3. Error:org.gradle.api.internal.changedetection.state.FileCollectionSnapshotImpl cannot be cast to org
  4. 日常工作必备之 linux 常用命令分类归纳
  5. js String方法集合
  6. 使用Nginx实现灰度发布
  7. windows 卸载IE8还原IE7的方法
  8. SAP Spartacus cms service取完page信息后的回调callback
  9. What are definitions of ​Model, Inference and Algorithm and its associations ?
  10. RedHat Enterprise Linux 6 配置Xmanager ,实现图形界面连接
  11. 目录指南中的Python列表文件-listdir VS system(“ ls”)通过示例进行解释
  12. json转python_将“true”(JSON)转换为Python等效的“True”
  13. 互斥与同步——local_irq_enable与local_irq_disable
  14. 怎么把mp3格式的音频文件转为文字?
  15. 多媒体计算机软件系统课件,《多媒体计算机系统》PPT课件.ppt
  16. 图像有损压缩与无损压缩_图像:有损与无损压缩
  17. 【游戏教程】《星界边境》游戏2D角色分析(一)跳跃、移动、站立动作拆分
  18. java统计图表代码_java swing下用jfreechart开发图表统计情况
  19. Windows8下使用Oracle10G的忧伤
  20. 詹姆斯高斯林_Oracle-谷歌专利纠纷不让詹姆斯·高斯林惊讶

热门文章

  1. 备战金九银十,阿里P8师兄指导完整攻略(附:学习资料+面试宝典+项目实战笔记)
  2. OpenGL相关网站
  3. 算法-----------乘积最大子数组(Java版本)
  4. 解决android 编译失败 Unexpected scopes found in folder
  5. getElementByName????????,????????,
  6. android 网络广播 类似QQ动态检查网络
  7. 【Android基础】RecyclerView的设计艺术
  8. Xcode 环境变量(绝对路径与相对路径)
  9. UIGestureRecognizer手势介绍
  10. jar容器部署成功无法访问_Spring Boot 应用程序五种部署方式