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.
我不断得到Can't绑定到本地XXXX用于控制台的调试器消息,但不是针对所有随机端口的1个端口。我已经做了这个问题中所说的,但是没有运气。我运行Windows 8。事实上,这些问题始于升级到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.
我已经尝试了Android SDK的新安装,以及一个新的Eclipse安装。我还试图关闭防火墙。
7 个解决方案
#1
5
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.
我遇到了同样的问题,没有一个解决方案奏效。然后我卸载了所有的JRE 7并安装了最新的JRE 6 (http://www.oracle.com/technetwork/java/javase/downloads/jre6downloads-1902815.html)。它立即解决了这个问题。
#2
3
In my case, this problem was caused by AVG antivirus. I tried adding exceptions and shutting it down only for development but that didn't work. I uninstalled it and the problem was solved after a restart.
在我的例子中,这个问题是由AVG杀毒软件引起的。我尝试添加异常,并只为了开发而关闭它,但没有成功。我卸载了它,问题在重新启动后得到了解决。
#3
1
C:\WINDOWS\system32\drivers\etc\host
C:\WINDOWS\system32\drivers\etc\host
And should contain this line :
并且应该包含这一行:
127.0.0.1 localhost
If you have ipv6 ip address ::1 in your host file you need to delete or remark it.
如果你有ipv6 ip地址::1在你的主机文件中,你需要删除或注释它。
#4
0
This might not be so constructive but I would recommend installing Linux. :-)
这可能不是很有建设性,但我建议安装Linux。:-)
On the more serious side: Install VMWare or VirtualBox and run it in from a virtual machine with e.g. Ubuntu as OS. You can easily map your USB drive to the virtual machine.
更严重的是:安装VMWare或VirtualBox,并在虚拟机上运行,例如Ubuntu作为OS。您可以轻松地将USB驱动器映射到虚拟机。
#5
0
For Mac: Check your /etc/hosts file. Ensure that there is no any local ip for localhost. I added and forgot that i added a local ip (ex: 192.168.2.1) for localhost.
Mac:检查你的/etc/hosts文件。确保本地主机没有任何本地ip。我添加了一个本地ip(例如:192.168.2.1)给localhost。
#6
0
If you got the error like "Can't bind to local 8700 for debugger" in android studio then just close the emulator and then open the emulator again, this time you mustn't seen the error, this happens to me
如果在android studio中出现“无法绑定到本地8700 for debugger”这样的错误,那么只需关闭仿真器,然后再次打开仿真器,这一次您一定没有看到错误,我也遇到过这种情况
#7
0
Open platform-tools in cmd and run these two commands
在cmd中打开平台工具并运行这两个命令
C:\Users\SH-PC-W8.1-3\AppData\Local\Android\Sdk\platform-tools
当地C:\Users\ SH-PC-W8.1-3 \ AppData \ \ Android \ Sdk \平台工具
adb kill-server
adb start-server
This works perfectly.
这是完美的。
Note: choose your platform-tools location
注意:选择平台工具的位置
#1
5
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.
我遇到了同样的问题,没有一个解决方案奏效。然后我卸载了所有的JRE 7并安装了最新的JRE 6 (http://www.oracle.com/technetwork/java/javase/downloads/jre6downloads-1902815.html)。它立即解决了这个问题。
#2
3
In my case, this problem was caused by AVG antivirus. I tried adding exceptions and shutting it down only for development but that didn't work. I uninstalled it and the problem was solved after a restart.
在我的例子中,这个问题是由AVG杀毒软件引起的。我尝试添加异常,并只为了开发而关闭它,但没有成功。我卸载了它,问题在重新启动后得到了解决。
#3
1
C:\WINDOWS\system32\drivers\etc\host
C:\WINDOWS\system32\drivers\etc\host
And should contain this line :
并且应该包含这一行:
127.0.0.1 localhost
If you have ipv6 ip address ::1 in your host file you need to delete or remark it.
如果你有ipv6 ip地址::1在你的主机文件中,你需要删除或注释它。
#4
0
This might not be so constructive but I would recommend installing Linux. :-)
这可能不是很有建设性,但我建议安装Linux。:-)
On the more serious side: Install VMWare or VirtualBox and run it in from a virtual machine with e.g. Ubuntu as OS. You can easily map your USB drive to the virtual machine.
更严重的是:安装VMWare或VirtualBox,并在虚拟机上运行,例如Ubuntu作为OS。您可以轻松地将USB驱动器映射到虚拟机。
#5
0
For Mac: Check your /etc/hosts file. Ensure that there is no any local ip for localhost. I added and forgot that i added a local ip (ex: 192.168.2.1) for localhost.
Mac:检查你的/etc/hosts文件。确保本地主机没有任何本地ip。我添加了一个本地ip(例如:192.168.2.1)给localhost。
#6
0
If you got the error like "Can't bind to local 8700 for debugger" in android studio then just close the emulator and then open the emulator again, this time you mustn't seen the error, this happens to me
如果在android studio中出现“无法绑定到本地8700 for debugger”这样的错误,那么只需关闭仿真器,然后再次打开仿真器,这一次您一定没有看到错误,我也遇到过这种情况
#7
0
Open platform-tools in cmd and run these two commands
在cmd中打开平台工具并运行这两个命令
C:\Users\SH-PC-W8.1-3\AppData\Local\Android\Sdk\platform-tools
当地C:\Users\ SH-PC-W8.1-3 \ AppData \ \ Android \ Sdk \平台工具
adb kill-server
adb start-server
This works perfectly.
这是完美的。
Note: choose your platform-tools location
注意:选择平台工具的位置