Eclipse:初始化监视器线程失败:无法建立环回连接

时间:2021-09-14 18:53:23

I have Eclipse Indigo installed on Win7 64bit with the ADT plugin and Android SDK's installed.

我在win764bit上安装了Eclipse Indigo插件和Android SDK。

An error occurs when I have my emulator open and I try to launch my test application:

当我打开模拟器并尝试启动测试应用程序时,会出现错误:

Failed to initialize Monitor Thread: Unable to establish loopback connection

I have looked into this error and it most often appears to be a firewall issue but with the firewall turned off I still get the error. Would it have anything to do with me having another Eclipse based IDE installed (Aptana 3)?

我研究过这个错误,它通常看起来是防火墙的问题,但是随着防火墙被关闭,我仍然得到这个错误。它与我安装另一个基于Eclipse的IDE (Aptana 3)有什么关系吗?

Things I have tried so far:

到目前为止我尝试过的事情:

  • Turn firewall off
  • 关闭防火墙
  • changed ddms port to 8601
  • 将ddms端口更改为8601
  • checked localhost is set to 127.0.01
  • 检查localhost设置为127.0.01。

I'm running out of ideas so any help of suggestions would be appreciated.

我的想法都快用完了,所以如果你能给我一些建议,我将不胜感激。

7 个解决方案

#1


26  

No need to disable IPV6. Just force Eclipse to use IPV4. Edit eclipse.ini and add the last line:

不需要禁用IPV6。只需强制Eclipse使用IPV4。eclipse编辑。最后一行:

openFile
-vmargs
-Djava.net.preferIPv4Stack=true

#2


1  

Solution : turn off Teredo Tunneling Pseudo-Interface.

解决方案:关闭Teredo隧道伪接口。

This probably converts IP4 to IPv6 addresses or something, resulting in an IPv6 address for your localhost (strange though, that a PING still results in IP4). Anyway, turning it off (Device manager > View > Show hidden devices > right click on Teredo > disable) solves the problem!

这可能会将IP4转换为IPv6地址或其他地址,从而为本地主机生成IPv6地址(奇怪的是,一个PING仍然会导致IP4)。不管怎样,关闭它(设备管理器>视图>显示隐藏设备>右键点击Teredo >禁用)解决了这个问题!

I found out by doing a ipconfig /all in the NON working situation. It showed :

我通过做一个ipconfig /all在不工作的情况下发现了这一点。它显示:

Tunnel adapter Teredo Tunneling Pseudo-Interface:

隧道适配器Teredo隧道伪接口:

Connection-specific DNS Suffix . :

Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface

Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0

DHCP Enabled. . . . . . . . . . . : No

Autoconfiguration Enabled . . . . : Yes

IPv6 Address. . . . . . . . . . . : 2001:0:5ef5:79fb:####:###:####:####(Preferred)

Link-local IPv6 Address . . . . . : fe80::3c47:###:####:#### (Preferred)

//edit : I guess it's technically a workaround untill Eclipse supports IPv6

//编辑:在Eclipse支持IPv6之前,我认为这在技术上是一个解决方案

#3


1  

Ahah!! Finally fixed this one. It was a problem I believe with my bigfoot killer network

啊! !最后固定。我相信这是我的大脚杀手网络的问题

So, here is what I did.

这就是我所做的。

Open CMD as administrator ( Right click, open as administrator ) Type: "netsh winsock reset"

以管理员身份打开CMD(右击,以管理员身份打开)类型:“netsh winsock reset”

Restart the computer

重新启动计算机

When it comes up saying: "Your LSP is not mapped correctly, would you like to re map it?" Click "NO"

当它出现说:“您的LSP没有正确地映射时,您想要重新映射它吗?”点击“否”

Then all is well..

然后一切都好. .

Only now, I do have it asking me about LSP mapping each time I boot, this f

直到现在,我才让它问我关于LSP映射的问题每次我启动,这个f

#4


1  

Was the same problem, tried everything and only completely deleted Java 7 and installed Java 6 JDK solved problem!

是同样的问题,尝试了一切,只完全删除了Java 7,安装了Java 6 JDK解决了问题!

#5


1  

I had the same problem with my Killer Networks Wireless card N-1103. I found that installing the latest driver from their website cured it

我的杀手网络无线卡N-1103也有同样的问题。我发现,在他们的网站上安装最新的驱动程序后,问题就解决了

#6


0  

It seems that Eclipse is blocked...

似乎Eclipse被阻塞了……

Go to command prompt and to /tools directory and type:

转到命令提示符和/tools目录并输入:

adb kill-server 
adb start-server 

Hope this helps...

希望这有助于……

#7


0  

Had the same problem here. My problem was a firewall issue. I use VirtualBox sometimes and found that the virtual machine's network adapter was the roadblock. Disabling the virtual adapter in Windows device manager solved my issue.

这里也有同样的问题。我的问题是防火墙的问题。我有时使用VirtualBox,发现虚拟机的网络适配器是障碍。在Windows设备管理器中禁用虚拟适配器解决了我的问题。

#1


26  

No need to disable IPV6. Just force Eclipse to use IPV4. Edit eclipse.ini and add the last line:

不需要禁用IPV6。只需强制Eclipse使用IPV4。eclipse编辑。最后一行:

openFile
-vmargs
-Djava.net.preferIPv4Stack=true

#2


1  

Solution : turn off Teredo Tunneling Pseudo-Interface.

解决方案:关闭Teredo隧道伪接口。

This probably converts IP4 to IPv6 addresses or something, resulting in an IPv6 address for your localhost (strange though, that a PING still results in IP4). Anyway, turning it off (Device manager > View > Show hidden devices > right click on Teredo > disable) solves the problem!

这可能会将IP4转换为IPv6地址或其他地址,从而为本地主机生成IPv6地址(奇怪的是,一个PING仍然会导致IP4)。不管怎样,关闭它(设备管理器>视图>显示隐藏设备>右键点击Teredo >禁用)解决了这个问题!

I found out by doing a ipconfig /all in the NON working situation. It showed :

我通过做一个ipconfig /all在不工作的情况下发现了这一点。它显示:

Tunnel adapter Teredo Tunneling Pseudo-Interface:

隧道适配器Teredo隧道伪接口:

Connection-specific DNS Suffix . :

Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface

Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0

DHCP Enabled. . . . . . . . . . . : No

Autoconfiguration Enabled . . . . : Yes

IPv6 Address. . . . . . . . . . . : 2001:0:5ef5:79fb:####:###:####:####(Preferred)

Link-local IPv6 Address . . . . . : fe80::3c47:###:####:#### (Preferred)

//edit : I guess it's technically a workaround untill Eclipse supports IPv6

//编辑:在Eclipse支持IPv6之前,我认为这在技术上是一个解决方案

#3


1  

Ahah!! Finally fixed this one. It was a problem I believe with my bigfoot killer network

啊! !最后固定。我相信这是我的大脚杀手网络的问题

So, here is what I did.

这就是我所做的。

Open CMD as administrator ( Right click, open as administrator ) Type: "netsh winsock reset"

以管理员身份打开CMD(右击,以管理员身份打开)类型:“netsh winsock reset”

Restart the computer

重新启动计算机

When it comes up saying: "Your LSP is not mapped correctly, would you like to re map it?" Click "NO"

当它出现说:“您的LSP没有正确地映射时,您想要重新映射它吗?”点击“否”

Then all is well..

然后一切都好. .

Only now, I do have it asking me about LSP mapping each time I boot, this f

直到现在,我才让它问我关于LSP映射的问题每次我启动,这个f

#4


1  

Was the same problem, tried everything and only completely deleted Java 7 and installed Java 6 JDK solved problem!

是同样的问题,尝试了一切,只完全删除了Java 7,安装了Java 6 JDK解决了问题!

#5


1  

I had the same problem with my Killer Networks Wireless card N-1103. I found that installing the latest driver from their website cured it

我的杀手网络无线卡N-1103也有同样的问题。我发现,在他们的网站上安装最新的驱动程序后,问题就解决了

#6


0  

It seems that Eclipse is blocked...

似乎Eclipse被阻塞了……

Go to command prompt and to /tools directory and type:

转到命令提示符和/tools目录并输入:

adb kill-server 
adb start-server 

Hope this helps...

希望这有助于……

#7


0  

Had the same problem here. My problem was a firewall issue. I use VirtualBox sometimes and found that the virtual machine's network adapter was the roadblock. Disabling the virtual adapter in Windows device manager solved my issue.

这里也有同样的问题。我的问题是防火墙的问题。我有时使用VirtualBox,发现虚拟机的网络适配器是障碍。在Windows设备管理器中禁用虚拟适配器解决了我的问题。