1. Error description
[2015-06-15 19:13:48-ddmlib] The software in your console aborted an established connection. Java.io.IOException: The software in your console aborted an established connection. 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:93) at Sun.nio.ch.IOUtil.write (ioutil.java:65) at Sun.nio.ch.SocketChannelImpl.write (socketchannelimpl.java:487) at Com.android.ddmlib.JdwpPacket.writeAndConsume ( jdwppacket.java:213) at Com.android.ddmlib.Client.sendAndConsume (client.java:675) at Com.android.ddmlib.HandleHeap.sendREAQ (handleheap.java:342) at Com.android.ddmlib.Client.requestAllocationStatus (client.java:521) at Com.android.ddmlib.DeviceMonitor.createClient (devicemonitor.java:831) at Com.android.ddmlib.DeviceMonitor.openClient (devicemonitor.java:799) at Com.android.ddmlib.DeviceMonitor.processIncomingJdwpData (devicemonitor.java:759) at Com.android.ddmlib.DeviceMonitor.deviceClientMonitorLoop (devicemonitor.java:648) at Com.android.ddmlib.devicemonitor.access$100 (Devicemonitor.java:44) at Com.android.ddmlib.devicemonitor$3.run (devicemonitor.java:576) [2015-06-15 19:13:49-ddmlib] The software in your console aborted an established connection. Java.io.IOException: The software in your console aborted an established connection. 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:93) at Sun.nio.ch.IOUtil.write (ioutil.java:65) at Sun.nio.ch.SocketChannelImpl.write (socketchannelimpl.java:487) at Com.android.ddmlib.JdwpPacket.writeAndConsume ( jdwppacket.java:213) at Com.android.ddmlib.Client.sendAndConsume (client.java:675) at Com.android.ddmlib.HandleHeap.sendREAQ (handleheap.java:342) at Com.android.ddmlib.Client.requestAllocationStatus (client.java:521) at Com.android.ddmlib.DeviceMonitor.createClient (devicemonitor.java:831) at Com.android.ddmlib.DeviceMonitor.openClient (devicemonitor.java:799) at Com.android.ddmlib.DeviceMonitor.processIncomingJdwpData (devicemonitor.java:759) at Com.android.ddmlib.DeviceMonitor.deviceClientMonitorLoop (Devicemonitor.java:648) at com.android.ddmlib.devicemonitor.access$100 (devicemonitor.java:44) at Com.android.ddmlib.devicemonitor$3.run (devicemonitor.java:576) [2015-06-15 19:13:58-ddmlib] The software in your console aborted an established connection. Java.io.IOException: The software in your console aborted an established connection. 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:93) at Sun.nio.ch.IOUtil.write (ioutil.java:65) at Sun.nio.ch.SocketChannelImpl.write (socketchannelimpl.java:487) at Com.android.ddmlib.JdwpPacket.writeAndConsume ( jdwppacket.java:213) at Com.android.ddmlib.Client.sendAndConsume (client.java:675) at Com.android.ddmlib.HandleHeap.sendREAQ (handleheap.java:342) at Com.android.ddmlib.Client.requestAllocationStatus (client.java:521) at Com.android.ddmlib.DeviceMonitor.createClient (devicemonitor.java:831) at Com.android.ddmlib.DeviceMonitor.openClient (devicemonitor.java:799) at Com.android.ddmlib.DeviceMonitor.processIncomingJdwpData (devicemonitor.java:759) at Com.android.ddmlib.DeviceMonitor.deviceClientMonitorLoop (devicemonitor.java:648) at COM.ANDROID.DDMLIB.DEVICEMONITOR.ACCESS$100 (devicemonitor.java:44) at Com.android.ddmlib.devicemonitor$3.run ( devicemonitor.java:576) [2015-06-15 19:13:59-ddmlib] The software in your console aborted an established connection. Java.io.IOException: The software in your console aborted an established connection. 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:93) at Sun.nio.ch.IOUtil.write (ioutil.java:65) at Sun.nio.ch.SocketChannelImpl.write (socketchannelimpl.java:487) at Com.android.ddmlib.JdwpPacket.writeAndConsume ( jdwppacket.java:213) at Com.android.ddmlib.Client.sendAndConsume (client.java:675) at Com.android.ddmlib.HandleHeap.sendREAQ (handleheap.java:342) at Com.android.ddmlib.Client.requestAllocationStatus (client.java:521) at Com.android.ddmlib.DeviceMonitor.createClient (devicemonitor.java:831) at Com.android.ddmlib.DeviceMonitor.openClient (devicemonitor.java:799) at COM.ANdroid.ddmlib.DeviceMonitor.processIncomingJdwpData (devicemonitor.java:759) at Com.android.ddmlib.DeviceMonitor.deviceClientMonitorLoop (devicemonitor.java:648) at COM.ANDROID.DDMLIB.DEVICEMONITOR.ACCESS$100 (devicemonitor.java:44) at Com.android.ddmlib.devicemonitor$3.run ( devicemonitor.java:576) [2015-06-15 19:41:57-devicemonitor] Adb connection Error: The remote host forced the shutdown of an existing connection. [2015-06-15 19:41:58-devicemonitor] Connection attempts:1[2015-06-15 19:42:00-devicemonitor] Connection attempts:2[2015-06-15 19:42:02-devicemonitor] Co Nnection attempts:3[2015-06-15 19:42:04-devicemonitor] Connection attempts:4[2015-06-15 19:42:06-devicemonitor] Conn Ection attempts:5[2015-06-15 19:42:08-devicemonitor] Connection attempts:6[2015-06-15 19:42:10-devicemonitor] Connec tion attempts:7[2015-06-15 19:42:12-devicemonitor] Connection attempts:8[2015-06-15 19:42:14-devicemonitor] Connecti On attempts:9[2015-06-15 19:42:16-devicemonitor] Connection attempts:10[2015-06-15 19:42:18-devicemoNitor] Connection attempts:11
2. Cause of error
I used the same SDK in both Eclipse and Android studio to run the Android project on Android Studio, and Eclipse was turned on, causing Adt.exe to run in two software colleagues, resulting in an error
3. Solutions
Close one of the software and only one run
Java.io.IOException: The software in your console aborted an established connection.