Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't bind to local XXXX for debugger

Tags:

android

ddms

I keep getting the Can't bind to local XXXX for debugger message in console, but not for 1 port, for all random ports. I have done what's stated in this question, but with no luck. I'm running Windows 8. In fact, these problems started after the upgrade to Windows 8.

[2012-11-02 16:40:41 - ddms] Can't bind to local 8627 for debugger
[2012-11-02 16:40:41 - ddms] Can't bind to local 8617 for debugger
[2012-11-02 16:40:42 - ddms] Can't bind to local 8605 for debugger
[2012-11-02 16:40:42 - ddms] Can't bind to local 8610 for debugger
[2012-11-02 16:41:46 - ddms] Can't bind to local 8611 for debugger
[2012-11-02 16:41:46 - ddms] Can't bind to local 8611 for debugger
[2012-11-02 16:41:47 - ddms] Can't bind to local 8611 for debugger
[2012-11-02 16:42:36 - ddms] Can't bind to local 8611 for debugger
[2012-11-02 16:42:38 - ddms] Can't bind to local 8611 for debugger
[2012-11-02 16:42:39 - ddms] Can't bind to local 8622 for debugger
[2012-11-02 16:42:39 - ddms] Can't bind to local 8608 for debugger
[2012-11-02 16:42:39 - ddms] Can't bind to local 8608 for debugger
[2012-11-02 16:42:48 - ddms] Can't bind to local 8609 for debugger
[2012-11-02 16:42:48 - ddms] Can't bind to local 8609 for debugger
[2012-11-02 16:43:32 - ddms] Can't bind to local 8609 for debugger
[2012-11-02 16:43:36 - ddms] Can't bind to local 8625 for debugger
[2012-11-02 16:43:36 - ddms] Can't bind to local 8619 for debugger

What can I do?

Edit
I've tried a new install of the Android SDK, and a new Eclipse install. I've also tried to turn off my firewall.

like image 336
nhaarman Avatar asked Nov 02 '12 15:11

nhaarman


2 Answers

I had same problem and none of given solutions worked. Then I have uninstalled all JRE 7 and installed latest JRE 6 (http://www.oracle.com/technetwork/java/javase/downloads/jre6downloads-1902815.html). It have immediately fixed the problem.

like image 107
KreCi Avatar answered Sep 24 '22 21:09

KreCi


Open platform-tools in cmd and run these two commands

C:\Users\SH-PC-W8.1-3\AppData\Local\Android\Sdk\platform-tools

adb kill-server
adb start-server

This works perfectly.

Note: choose your platform-tools location

like image 43
Akila Avatar answered Sep 24 '22 21:09

Akila