Skip to content

 

Skip to content

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

 

 

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

 

The error message:

C:\Program Files\Android\android-sdk\tools>ddms.bat

10:16:51 E/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:574)
        at com.android.ddmlib.HandleHeap.sendREAQ(HandleHeap.java:348)
        at com.android.ddmlib.Client.requestAllocationStatus(Client.java:420)
        at com.android.ddmlib.DeviceMonitor.createClient(DeviceMonitor.java:854)
        at com.android.ddmlib.DeviceMonitor.openClient(DeviceMonitor.java:822)
        at com.android.ddmlib.DeviceMonitor.processIncomingJdwpData(DeviceMonitor.java:781)
        at com.android.ddmlib.DeviceMonitor.deviceClientMonitorLoop(DeviceMonitor.java:649)
        at com.android.ddmlib.DeviceMonitor.access$100(DeviceMonitor.java:42)
        at com.android.ddmlib.DeviceMonitor$3.run(DeviceMonitor.java:577)

C:\Program Files\Android\android-sdk\tools>

 

 

Some reasons:

1:  Try to Close your Eclipse and restart Eclipse again.
2:  Checkout there might be two instances of Eclipse are pointing to same Android SDK. Make sure there just one instance of Eclipse and try again.
3:  We also config Eclipse to disable ddms or stop ddms. Then we can only use the ddms from the terminal.

 

 

 

Categories: Android.

By: 5laida.com  —  July 11, 2011 at 2:36 pm