I get a ddms error message Can't bind to local 8602 for debugger - no debugging for Android

I am just starting to develop a simple welcome application for the world, and I got this error, and I can not debug any application on AVD and any device. I am using Eclipse Juno and Windows 8.

[2012-11-11 10:57:37 - ddms] Can't bind to local 8610 for debugger [2012-11-11 10:57:37 - 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) [2012-11-11 10:58:41 - ddms] Can't bind to local 8602 for debugger [2012-11-11 10:58:41 - ddms] Can't bind to local 8610 for debugger [2012-11-11 10:58:41 - ddms] Can't bind to local 8602 for debugger 

I checked many of the available solutions, including: disabling Windows firewall / antivirus

adding the line "127.0.0.1 localhost" to the host file

checking for another eclipse instance running in the background (I only have one instance working)

restart adb

recreation avd

restarting eclipse and my computer also did not help

a change in the window โ†’ Settings โ†’ Android โ†’ DDMS โ€œlocal debugger local portโ€ and checking โ€œuse ADBHOSTโ€ with โ€œ127.0.0.1โ€ also did not help me.

check with netstat -a that the ports are not used

Please, maybe someone can solve the madness so that the debugger connects.

+4
source share
2 answers

I had the same problem since installing Windows 8.

Installing JRE 6 solved the problem, however, it worked once without the need for this.

http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html#jre-6u34-oth-JPR

+3
source

OK. I spent several hours to figure this out: It turned out that the reason was Java 7. I uninstalled Java 7 and installed Java 6 and debugging now works!

+2
source

Source: https://habr.com/ru/post/1445308/


All Articles