NPE在物理设备上调试android应用程序
问题描述:
我已经设置了我的设备驱动程序,eclipse发现它没有问题,我可以在我的手机中执行应用程序,也在Chrome中调试视图,但是当我尝试Debug as > Android application
我可以看到应用程序在设备启动,它试图附加调试器,然后我总是得到这个错误:NPE在物理设备上调试android应用程序
2015-02-23 10:58:31 - ddms] null
java.lang.NullPointerException
at org.eclipse.debug.internal.ui.DebugUIPlugin.launchInBackground(DebugUIPlugin.java:1292)
at org.eclipse.debug.ui.DebugUITools.launch(DebugUITools.java:766)
at com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.debugRunningApp(AndroidLaunchController.java:178)
at com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.clientChanged(AndroidLaunchController.java:1749)
at com.android.ddmlib.AndroidDebugBridge.clientChanged(AndroidDebugBridge.java:926)
at com.android.ddmlib.Device.update(Device.java:775)
at com.android.ddmlib.Client.update(Client.java:936)
at com.android.ddmlib.HandleHello.handleHELO(HandleHello.java:175)
at com.android.ddmlib.HandleHello.handleChunk(HandleHello.java:81)
at com.android.ddmlib.MonitorThread.callHandler(MonitorThread.java:414)
at com.android.ddmlib.MonitorThread.processClientActivity(MonitorThread.java:336)
at com.android.ddmlib.MonitorThread.run(MonitorThread.java:263)
任何想法?
答
在Eclipse/Android问题20990中适用的解决方法适用于我。
this does not seem to occur upon first launch. i have my launch config set to "Always Ask" for the device; this seems to occur either as a result of or as a reason for that dialog not appearing on some of my attempts to re-launch.
您使用的是哪个版本的Eclipse? – 2015-02-23 10:57:17
@StephenC即时通讯与Eclipse月神,你的链接魅力帮助,我编辑你的答案与解决方法简历和接受。谢谢! – 2015-02-23 11:18:19
我拒绝了你的编辑,因为(IMO)对我的回答没有任何意义。它既可以作为评论也可以作为“自我回答”。 – 2015-02-23 11:36:25