-1

可能重复:
已建立的连接被主机中的软件中止

尝试在模拟器中上传时,我在控制台上收到错误消息。

[2012-10-08 14:20:22 - 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(Unknown Source)
    at sun.nio.ch.IOUtil.writeFromNativeBuffer(Unknown Source)
    at sun.nio.ch.IOUtil.write(Unknown Source)
    at sun.nio.ch.SocketChannelImpl.write(Unknown Source)
    at com.android.ddmlib.JdwpPacket.writeAndConsume(JdwpPacket.java:213)
    at com.android.ddmlib.Client.sendAndConsume(Client.java:575)
    at com.android.ddmlib.HandleHeap.sendREAQ(HandleHeap.java:348)
    at com.android.ddmlib.Client.requestAllocationStatus(Client.java:421)
    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)
4

1 回答 1

0

您不必重新启动 Eclipse。通常重启 adb-server 就足够了:

  • 打开你的 shell / cmd 窗口
  • cd 到您的平台工具目录
  • 输入“adb kill-server”
  • 输入“亚行启动服务器”
  • 当模拟器仍在运行时,您应该使用“adb devices”找到它
  • 那么你应该能够通过eclipse正常安装你的应用程序

希望这可以帮助

于 2012-10-08T09:05:33.677 回答