【问题标题】:Why can't won't ecilpse connect to my Android device?为什么 eclipse 无法连接到我的 Android 设备?
【发布时间】:2013-10-21 09:07:21
【问题描述】:

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

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 给我这个错误:

[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

我也尝试取消检查并重新检查调试器。我在学校的电脑上,还没有机会在我的家用电脑上试用。虽然它以前工作过,但也许防火墙现在阻止了它或其他什么?有人有什么想法吗?

【问题讨论】:

  • 你试过强制关闭adb服务吗?

标签: adb


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 2014-12-28
    • 1970-01-01
    • 2012-08-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-09-06
    • 1970-01-01
    相关资源
    最近更新 更多