-1

我尝试在 Eclipse 中创建不同的模拟器,每次都遇到此错误。我没有运行两个 Eclipse 实例......

[2013-03-24 16:02:40 - ddmlib] An established connection was aborted by the software in your host machine
    java.io.IOException: An established connection was aborted by the software in your host machine
        at sun.nio.ch.SocketDispatcher.write0(Native Method)
        at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:51)
        at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:89)
        at sun.nio.ch.IOUtil.write(IOUtil.java:60)
        at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:450)
        at com.android.ddmlib.JdwpPacket.writeAndConsume(JdwpPacket.java:213)
        at com.android.ddmlib.Client.sendAndConsume(Client.java:605)
        at com.android.ddmlib.HandleHeap.sendREAQ(HandleHeap.java:348)
        at com.android.ddmlib.Client.requestAllocationStatus(Client.java:451)
        at com.android.ddmlib.DeviceMonitor.createClient(DeviceMonitor.java:837)
        at com.android.ddmlib.DeviceMonitor.openClient(DeviceMonitor.java:805)
        at com.android.ddmlib.DeviceMonitor.processIncomingJdwpData(DeviceMonitor.java:765)
        at com.android.ddmlib.DeviceMonitor.deviceClientMonitorLoop(DeviceMonitor.java:652)
        at com.android.ddmlib.DeviceMonitor.access$100(DeviceMonitor.java:44)
        at com.android.ddmlib.DeviceMonitor$3.run(DeviceMonitor.java:580)

我尝试过的事情:

在我通过 Eclipse 更新 ADT 和 SDK 之前,它曾经可以工作。我可以连接到我的设备并从那里运行我的应用程序......

4

1 回答 1

0

您需要重新连接 ADB。这可以从“Devices Perspective”菜单中完成(右侧的最后一个按钮,上三角有一个“Reset ADB”选项)。

您还可以使用以下命令从命令行重置 ADB:

abd kill-server

然后

and start-server
于 2013-03-24T16:12:55.360 回答