Java. io. IOException: the software in your host suspends a established connection ., Abort connection exception
1. Error description
[19:13:48-ddmlib] the software in your host suspends a established connection. Java. io. IOException: the software in your host suspends a 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. ja Va: 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. d EviceClientMonitorLoop (DeviceMonitor. java: 648) at com. android. ddmlib. deviceMonitor. access $100 (DeviceMonitor. java: 44) at com. android. ddmlib. deviceMonitor $ 3.run( DeviceMonitor. java: 576) [19:13:49-ddmlib] the software on your host suspends an established connection. Java. io. IOException: the software in your host suspends a 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. ja Va: 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. d EviceClientMonitorLoop (DeviceMonitor. java: 648) at com. android. ddmlib. deviceMonitor. access $100 (DeviceMonitor. java: 44) at com. android. ddmlib. deviceMonitor $ 3.run( DeviceMonitor. java: 576) [19:13:58-ddmlib] the software on your host suspends an established connection. Java. io. IOException: the software in your host suspends a 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. ja Va: 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. d EviceClientMonitorLoop (DeviceMonitor. java: 648) at com. android. ddmlib. deviceMonitor. access $100 (DeviceMonitor. java: 44) at com. android. ddmlib. deviceMonitor $ 3.run( DeviceMonitor. java: 576) [19:13:59-ddmlib] the software on your host suspends an established connection. Java. io. IOException: the software in your host suspends a 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. ja Va: 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. d EviceClientMonitorLoop (DeviceMonitor. java: 648) at com. android. ddmlib. deviceMonitor. access $100 (DeviceMonitor. java: 44) at com. android. ddmlib. deviceMonitor $ 3.run( DeviceMonitor. java: 576) [19:41:57-DeviceMonitor] Adb connection Error: the remote host forces an existing connection to be closed. [19:41:58-DeviceMonitor] Connection attempts: 1 [19:42:00-DeviceMonitor] Connection attempts: 2 [19:42:02-DeviceMonitor] Connection attempts: 3 [19:42:04-DeviceMonitor] Connection attempts: 4 [19:42:06-DeviceMonitor] Connection attempts: 5 [19:42:08-DeviceMonitor] Connection attempts: 6 [19:42:10-DeviceMonitor] Connection attempts: 7 [19:42:12-DeviceMonitor] Connection attempts: 8 [19:42:14-DeviceMonitor] Connection attempts: 9 [19:42:16-DeviceMonitor] Connection attempts: 10 [19:42:18-DeviceMonitor] Connection attempts: 11
2. Error cause
I use the same SDK in Eclipse and Android Studio, and run the androidproject on Android Studio. In this case, eclipseis also opened, leading to adt.exe running in two software colleagues, resulting in errors.
3. Solution
Close one of the software and only one operation is allowed.