应用不上传到模拟器

时间:2012-10-08 08:51:40

标签: android

  

可能重复:
  An established connection was aborted by the software in your host machine

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

[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)

1 个答案:

答案 0 :(得分:0)

你不必重新启动eclipse。通常只需重新启动adb-server即可:

  • 打开shell / cmd窗口
  • cd到您的platform-tools目录
  • 输入“adb kill-server”
  • 输入“adb start-server”
  • 当模拟器仍在运行时,您应该使用“adb devices”找到它
  • 那么你应该可以通过eclipse
  • 正常安装你的应用程序

希望这会有所帮助