当我使用“adb uninstall”卸载应用程序时,我的logcat *:W开始看起来有点像这样 -
W/ResourceType( 1269): Resources don't contain package for resource number 0x7f050000
W/ResourceType( 1269): Resources don't contain package for resource number 0x7f020005
W/ResourceType( 1269): Resources don't contain package for resource number 0x7f020004
W/ResourceType( 1269): Resources don't contain package for resource number 0x7f0700e5
W/ResourceType( 1269): Resources don't contain package for resource number 0x7f020031
W/ResourceType( 1269): Resources don't contain package for resource number 0x7f020030
W/ResourceType( 1269): Resources don't contain package for resource number 0x7f050000
W/ResourceType( 1269): Resources don't contain package for resource number 0x7f080000
W/ResourceType( 1269): Resources don't contain package for resource number 0x7f020051
W/ResourceType( 1269): Resources don't contain package for resource number 0x7f020052
W/ResourceType( 1269): Resources don't contain package for resource number 0x7f0a0000
W/ResourceType( 1269): Resources don't contain package for resource number 0x7f02012f
W/ResourceType( 1269): Resources don't contain package for resource number 0x7f020130
W/ResourceType( 1269): Resources don't contain package for resource number 0x7f060001
E/AndroidRuntime( 6887): ERROR: thread attach failed
该错误是什么 - “线程附加失败”是什么意思?
答案 0 :(得分:2)
查看日志消息中的进程ID。 W / ResourceType消息和E / AndroidRuntime处于不同的进程中,这通常表明它们是不相关的。
“线程附加失败”消息通常带有shell命令,如“adb shell am”。如果它们快速完成,您将看到投诉,因为VM正在关闭,而绑定线程池仍在启动。投诉是无害的。
答案 1 :(得分:0)
尝试杀死你的adb并再次重启...
//重新启动模拟器对我有用。我想备份管理器不允许我的应用程序抛出RuntimeException:s。因此,重新启动模拟器使它忘记了我的应用程序的不良行为。非常聪明的功能,但没有很好的记录。
答案 2 :(得分:0)
我尝试在较低的VM版本上模拟应用程序时收到此错误,而不是在清单android:minSdkVersion中指定的。还有一个警告,我没有看到:
system_process WARN PackageParser /data/app/vmdl34002.tmp (at Binary XML file line #6): Requires newer sdk version #8 (current version is #7)
降低最低SDK版本对其进行排序。有点愚蠢,但这可能会帮助别人。