为什么无法取消连接到我的Android设备? [英] Why can't won't ecilpse connect to my Android device?

查看:109
本文介绍了为什么无法取消连接到我的Android设备?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做了一些搜索,找到了建议的解决方案,但没有任何效果。当我尝试在手机上运行Android程序时,出现以下错误:

I've done a bit of searching and found suggested solutions, but nothing works. When I try to run my Android program on my phone, I get this error:

2012-04-11 10:25:00 - Android Cheater Physics] Android Launch!
[2012-04-11 10:25:00 - Android Cheater Physics] Connection with adb was interrupted.
[2012-04-11 10:25:00 - Android Cheater Physics] 0 attempts have been made to reconnect.
[2012-04-11 10:25:00 - Android Cheater Physics] You may want to manually restart adb from the Devices view.

重新启动adb会给我这个错误:

Restarting the adb gives me this error:

[2012-04-11 10:05:40 - ddms]Failed to initialize Monitor Thread: Unable to establish loopback connection
[2012-04-11 10:08:46 - DeviceMonitor]Adb connection Error:An existing connection was forcibly closed by the remote host
[2012-04-11 10:08:46 - Logcat]An existing connection was forcibly closed by the remote host
java.io.IOException: An existing connection was forcibly closed by the remote host
    at sun.nio.ch.SocketDispatcher.read0(Native Method)
    at sun.nio.ch.SocketDispatcher.read(Unknown Source)
    at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source)
    at sun.nio.ch.IOUtil.read(Unknown Source)
    at sun.nio.ch.SocketChannelImpl.read(Unknown Source)
    at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:395)
    at com.android.ddmlib.Device.executeShellCommand(Device.java:284)
    at com.android.ddmuilib.logcat.LogPanel$3.run(LogPanel.java:527)

[2012-04-11 10:08:47 - DeviceMonitor]Connection attempts: 1
[2012-04-11 10:09:18 - DeviceMonitor]Adb connection Error:An existing connection was forcibly closed by the remote host

我也尝试取消选中并重新检查调试器。我在学校计算机上,还没有机会在家用计算机上尝试。尽管以前可以使用,但也许防火墙现在正在阻止它或其他原因?有人有任何想法吗?

I've tried unchecking and rechecking the debugger as well. I'm on a school computer and haven't had the chance to try it on my home computer. Although it worked before, perhaps the firewall is now blocking it or something? Anyone have any ideas?

推荐答案

转到 DDMS ,==> 重置adb ==> 重新启动 Eclipse

Go to DDMS ,==> Reset adb ==> restart Eclipse

这篇关于为什么无法取消连接到我的Android设备?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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