我已经做了一些搜索并找到了建议的解决方案,但没有任何效果。当我尝试在手机上运行我的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
我也试过取消选中并重新检查调试器。我在学校的电脑上,没有机会在家用电脑上试试。虽然它之前有用,但防火墙现在可能会阻止它还是什么?有人有什么想法吗?
答案 0 :(得分:1)
转到 DDMS ,==> 重置adb ==> 重新启动 Eclipse