android已建立的连接已被主机中的软件中止

时间:2014-03-30 12:14:48

标签: java android

[2014-03-30 19:55:57 - 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:642)
    at com.android.ddmlib.HandleHeap.sendREAQ(HandleHeap.java:348)
    at com.android.ddmlib.Client.requestAllocationStatus(Client.java:488)
    at com.android.ddmlib.DeviceMonitor.createClient(DeviceMonitor.java:835)
    at com.android.ddmlib.DeviceMonitor.openClient(DeviceMonitor.java:803)
    at com.android.ddmlib.DeviceMonitor.processIncomingJdwpData(DeviceMonitor.java:763)
    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)

您好,运行SQLite应用程序(在Eclipse中)后出现问题,我搜索了很多类似的问题,但没有一个解决方案可以解决我的问题。

任何人都可以帮我解决这个问题吗?谢谢。

问题图片如下:

http://imgur.com/SkouxKC

http://imgur.com/o93VnuF

2 个答案:

答案 0 :(得分:1)

您的计算机上可能有两个eclipse实例正在运行。尝试重启eclipse和/或重启adb。检查以下链接是否存在类似问题。

An established connection was aborted by the software in your host machine

答案 1 :(得分:0)

  1. 首先确保您只运行一个Eclipse实例(没有其他运行Eclipse或Studio的实例指向同一个Android SDK)。
  2. 如果上述设置正确,请尝试按adb kill-server然后adb start-server
  3. 查杀和重启adb服务器
  4. 如果这不起作用,请考虑重新启动Eclipse或您的计算机。