NPE在调试物理设备的Andr​​oid应用程序时, [英] NPE when debugging android app in physical device

查看:191
本文介绍了NPE在调试物理设备的Andr​​oid应用程序时,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经设置了我的设备驱动程序,日食发现它没有问题,我可以在我的手机运行的应用程序,也调试在Chrome的看法,但是当我尝试调试为> Android应用程序我可以看到应用程序启动的设备,它会尝试连接调试器,然后我总是得到这个错误:

I've set up my device drivers, eclipse is finding it without problem, I can execute the app in my phone, also debug the view in Chrome, but when I try to Debug as > Android application I can see app starting in the device, it tries to attach the debugger and then I always get this error:

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 为我工作。

Workaround related in Eclipse / Android issue 20990 works for me.

这似乎并没有发生在第一次发射。我有我的启动配置设置为始终询问的装置;这似乎发生无论是作为或作为一个理由对话框没有出现在我的一些尝试重新推出的结果。

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.

这篇关于NPE在调试物理设备的Andr​​oid应用程序时,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆