在Android中强制关闭错误

时间:2011-12-23 06:50:01

标签: android eclipse

当我通过eclipse在模拟器中启动应用程序时,我收到强制关闭错误,之后我的应用程序将运行..这是什么原因?

这是图片

screen snapshot

记录消息:

  

12-23 12:33:12.488:E / Zygote(33):setreuid()失败了。错误:2 12-23   12:33:18.518:E / Zygote(33):setreuid()失败了。错误:17 12-23   12:33:19.558:E / BatteryService(59):未找到usbOnlinePath 12-23   12:33:19.558:E / BatteryService(59):找不到batteryVoltagePath 12-23   12:33:19.558:E / BatteryService(59):找不到batteryTemperaturePath   12-23 12:33:19.578:E / SurfaceFlinger(59):无法打开   / sys / power / wait_for_fb_sleep或/ sys / power / wait_for_fb_wake 12-23   12:33:24.268:E / EventHub(59):无法获取驱动程序版本   / dev / input / mouse0,不是打字机12-23 12:33:24.268:   E / EventHub(59):无法获得/ dev / input / mice的驱动程序版本   打字机12-23 12:33:24.519:E /系统(59):启动核心失败   service 12-23 12:33:24.519:E / System(59):java.lang.SecurityException   12-23 12:33:24.519:E / System(59):at   android.os.BinderProxy.transact(Native Method)12-23 12:33:24.519:   E / System(59):at   android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)   12-23 12:33:24.519:E / System(59):at   android.os.ServiceManager.addService(ServiceManager.java:72)12-23   12:33:24.519:E / System(59):at   com.android.server.ServerThread.run(SystemServer.java:184)12-23   12:33:25.609:E / SoundPool(59):加载错误   /system/media/audio/ui/Effect_Tick.ogg 12-23 12:33:25.609:   E / SoundPool(59):加载错误   /system/media/audio/ui/KeypressStandard.ogg 12-23 12:33:25.618:   E / SoundPool(59):加载错误   /system/media/audio/ui/KeypressSpacebar.ogg 12-23 12:33:25.618:   E / SoundPool(59):加载错误   /system/media/audio/ui/KeypressDelete.ogg 12-23 12:33:25.618:   E / SoundPool(59):加载错误   /system/media/audio/ui/KeypressReturn.ogg 12-23 12:33:27.728:   E / ThrottleService(59):无法打开GPS配置文件   /etc/gps.conf 12-23 12:33:28.447:E / logwrapper(140):正在执行   / system / bin / tc failed:没有这样的文件或目录12-23 12:33:28.469:   E / logwrapper(142):执行/ system / bin / tc失败:没有这样的文件或   目录12-23 12:33:28.629:E / logwrapper(145):执行   / system / bin / tc failed:没有这样的文件或目录12-23 12:33:32.568:   E / AndroidRuntime(122):致命异常:主12-23 12:33:32.568:   E / AndroidRuntime(122):java.lang.RuntimeException:无法启动   活动   ComponentInfo {com.android.launcher / com.android.launcher2.Launcher}:   android.content.res.Resources $ NotFoundException:资源ID

     

0x7f030009 12-23 12:33:32.568:E / AndroidRuntime(122):在android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)

     

12-23 12:33:32.568:E / AndroidRuntime(122):at   android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)   12-23 12:33:32.568:E / AndroidRuntime(122):at   android.app.ActivityThread.access $ 2300(ActivityThread.java:125)12-23   12:33:32.568:E / AndroidRuntime(122):at   android.app.ActivityThread $ H.handleMessage(ActivityThread.java:2033)   12-23 12:33:32.568:E / AndroidRuntime(122):at   android.os.Handler.dispatchMessage(Handler.java:99)12-23   12:33:32.568:E / AndroidRuntime(122):at   android.os.Looper.loop(Looper.java:123)12-23 12:33:32.568:   E / AndroidRuntime(122):at   android.app.ActivityThread.main(ActivityThread.java:4627)12-23   12:33:32.568:E / AndroidRuntime(122):at   java.lang.reflect.Method.invokeNative(Native Method)12-23   12:33:32.568:E / AndroidRuntime(122):at   java.lang.reflect.Method.invoke(Method.java:521)12-23 12:33:32.568:   E / AndroidRuntime(122):at   com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:868)   12-23 12:33:32.568:E / AndroidRuntime(122):at   com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)12-23   12:33:32.568:E / AndroidRuntime(122):at   dalvik.system.NativeStart.main(Native Method)12-23 12:33:32.568:   E / AndroidRuntime(122):引起:   android.content.res.Resources $ NotFoundException:资源ID

     

0x7f030009 12-23 12:33:32.568:E / AndroidRuntime(122):在android.content.res.Resources.getValue(Resources.java:892)12-23

     

12:33:32.568:E / AndroidRuntime(122):at   android.content.res.Resources.loadXmlResourceParser(Resources.java:1869)   12-23 12:33:32.568:E / AndroidRuntime(122):at   android.content.res.Resources.getLayout(Resources.java:731)12-23   12:33:32.568:E / AndroidRuntime(122):at   android.view.LayoutInflater.inflate(LayoutInflater.java:318)12-23   12:33:32.568:E / AndroidRuntime(122):at   android.view.LayoutInflater.inflate(LayoutInflater.java:276)12-23   12:33:32.568:E / AndroidRuntime(122):at   com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:198)   12-23 12:33:32.568:E / AndroidRuntime(122):at   android.app.Activity.setContentView(Activity.java:1647)12-23   12:33:32.568:E / AndroidRuntime(122):at   com.android.launcher2.Launcher.onCreate(Launcher.java:236)12-23   12:33:32.568:E / AndroidRuntime(122):at   android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)   12-23 12:33:32.568:E / AndroidRuntime(122):at   android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)   12-23 12:33:32.568:E / AndroidRuntime(122):... 11更多12-23   12:33:41.994:E / HierarchicalStateMachine(59):TetherMaster -   unhandledMessage:msg.what = 3

此外,一旦我关闭并启动模拟器,我的应用程序根本无法启动,因此我需要关闭eclipse并重新开始。这是什么原因?

2 个答案:

答案 0 :(得分:1)

问题与模拟器有关,删除现有的模拟器,你只需创建新的虚拟模拟器就能给予足够的回忆。那都是..

答案 1 :(得分:0)

错误应该是:

  

12:33:32.568:E / AndroidRuntime(122):致命异常:主12-23   12:33:32.568:E / AndroidRuntime(122):java.lang.RuntimeException:   无法开始活动   ComponentInfo {com.android.launcher / com.android.launcher2.Launcher}:   android.content.res.Resources $ NotFoundException:资源ID

尝试调试活动Launcher,错误可能在onCreate()onResume()。否则你可以尝试一个干净的项目,但我不认为这会改变一些东西。