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

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

Since yesterday suddenly my Eclipse does not work anymore. The error is "Failed to initialize monitor Thread: Unable to establishe loopback connection". I googled and tried the following:

从昨天起,我的月食突然停止了。错误是“初始化监控线程失败:无法建立环回连接”。我在谷歌上搜索并尝试了以下方法:

  • IPv6 completely off, if I ping localhost I get back 127.0.0.1
  • IPv6完全关闭,如果我ping localhost,我将返回127.0.0.1
  • Firewall exceptions added for eclipse.exe and adb.exe
  • 为eclipse添加的防火墙异常。exe和adb.exe
  • Adb killed and re-started
  • 亚行死亡,四散离去
  • Reset Adb from eclipse
  • 从eclipse重置亚行
  • Virus scanners off (temporarily)
  • 病毒扫描器(暂时)

Nothing seems to help, I'm lost. Besides, if I try to update I get the error message also:

似乎没什么用,我迷路了。此外,如果我尝试更新,我也会得到错误消息:

Some sites could not be found. See the error log for more detail. Unable to read repository at http://dl-ssl.google.com/android/eclipse/content.xml. Permission denied: connect

有些网站找不到。有关更多细节,请参见错误日志。无法在http://dl-ssl.google.com/android/eclipse/content.xml上读取存储库。拒绝访问:连接

.. I can browse from Eclipse (with the Internal Web Browser perspective), so there is an internet connection. Furthermore, no proxies, just a direct connection.

. .我可以浏览Eclipse(使用内部Web浏览器透视图),因此有一个internet连接。此外,没有代理,只有一个直接连接。

6 个解决方案

#1


5  

My solution was: Terminate my proxifier.exe

我的解决办法是:终止我的产品

I guess eclipse doesn't like proxies

我猜eclipse不喜欢代理

#2


2  

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 . :

Connection-specific DNS后缀。:

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

描述………:船蛆隧道Pseudo-Interface

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

物理地址……:00-00-00-00-00-00-00-E0

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

DHCP……:不

Autoconfiguration Enabled . . . . : Yes

自动配置启用…:是的

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

IPv6地址……:2001:0:5ef5:79fb:# # # #:# # #:# # # #:# # # #(首选)

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

本地IPv6地址……:fe80::3 c47:# # #:# # # #:# # # #(首选)

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

//编辑:我想这是一个解决方案,直到Eclipse支持IPv6为止

#3


1  

Please check your anti virus blocked your eclipse,just give allow full access to eclipse on your antivirus security settings.

请检查您的反病毒阻止了您的eclipse,只允许在您的反病毒安全设置上完全访问eclipse。

I faced the same problem in my eclipse and I am using k7 total security.Now the problem is solved

我在eclipse中遇到了同样的问题,我正在使用k7总安全性。现在问题解决了

#4


1  

See https://*.com/a/11327411/552958

参见https://*.com/a/11327411/552958

I suspect you are using Java 7 which looks like it prefers IPV6 over IPV4. So you need to make sure that -Djava.net.preferIPv4Stack=true is a jvm argument.

我怀疑您使用的是Java 7,它看起来更喜欢IPV6而不是IPV4。因此,您需要确保-Djava.net.preferIPv4Stack=true是一个jvm参数。

#5


0  

I came here to add that in my case the solution that worked was to change eclipse.ini. I did try ALL the other answers in this thread and in other threads (reinstalling Eclipse, reinstalling the Android SDK, reinstalling Java 7 as well, rebooting, checking if Toledo was installed, etc). After an exhaustive google search, I came across this:

我来这里是想说,在我的情况下,解决的办法是改变eclipse.ini。我在这个线程和其他线程中尝试了所有其他答案(重新安装Eclipse、重新安装Android SDK、重新安装Java 7、重新启动、检查Toledo是否已经安装等等)。在谷歌搜索之后,我发现:

http://www.java.net/node/703177

http://www.java.net/node/703177

However, I am not knowledgeable enough to understand why it worked. If anyone has any idea, please let me know. Thanks

然而,我没有足够的知识去理解它为什么起作用。如果有人有任何想法,请告诉我。谢谢

#6


0  

I got this problem after updating ADT and SDKs etc. I did solutions above but didn't work at all. So, update JDK from "JDK 8u25" to "JDK 8u45" and changed path setting (on Windows and Eclipse). This works for me perfectly!

这个问题是我在更新ADT和SDKs等后遇到的。我做了上面的解决方案,但是根本没用。因此,将JDK从“JDK 8u25”升级到“JDK 8u45”,并更改了路径设置(在Windows和Eclipse上)。这对我来说再合适不过了!

#1


5  

My solution was: Terminate my proxifier.exe

我的解决办法是:终止我的产品

I guess eclipse doesn't like proxies

我猜eclipse不喜欢代理

#2


2  

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 . :

Connection-specific DNS后缀。:

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

描述………:船蛆隧道Pseudo-Interface

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

物理地址……:00-00-00-00-00-00-00-E0

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

DHCP……:不

Autoconfiguration Enabled . . . . : Yes

自动配置启用…:是的

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

IPv6地址……:2001:0:5ef5:79fb:# # # #:# # #:# # # #:# # # #(首选)

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

本地IPv6地址……:fe80::3 c47:# # #:# # # #:# # # #(首选)

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

//编辑:我想这是一个解决方案,直到Eclipse支持IPv6为止

#3


1  

Please check your anti virus blocked your eclipse,just give allow full access to eclipse on your antivirus security settings.

请检查您的反病毒阻止了您的eclipse,只允许在您的反病毒安全设置上完全访问eclipse。

I faced the same problem in my eclipse and I am using k7 total security.Now the problem is solved

我在eclipse中遇到了同样的问题,我正在使用k7总安全性。现在问题解决了

#4


1  

See https://*.com/a/11327411/552958

参见https://*.com/a/11327411/552958

I suspect you are using Java 7 which looks like it prefers IPV6 over IPV4. So you need to make sure that -Djava.net.preferIPv4Stack=true is a jvm argument.

我怀疑您使用的是Java 7,它看起来更喜欢IPV6而不是IPV4。因此,您需要确保-Djava.net.preferIPv4Stack=true是一个jvm参数。

#5


0  

I came here to add that in my case the solution that worked was to change eclipse.ini. I did try ALL the other answers in this thread and in other threads (reinstalling Eclipse, reinstalling the Android SDK, reinstalling Java 7 as well, rebooting, checking if Toledo was installed, etc). After an exhaustive google search, I came across this:

我来这里是想说,在我的情况下,解决的办法是改变eclipse.ini。我在这个线程和其他线程中尝试了所有其他答案(重新安装Eclipse、重新安装Android SDK、重新安装Java 7、重新启动、检查Toledo是否已经安装等等)。在谷歌搜索之后,我发现:

http://www.java.net/node/703177

http://www.java.net/node/703177

However, I am not knowledgeable enough to understand why it worked. If anyone has any idea, please let me know. Thanks

然而,我没有足够的知识去理解它为什么起作用。如果有人有任何想法,请告诉我。谢谢

#6


0  

I got this problem after updating ADT and SDKs etc. I did solutions above but didn't work at all. So, update JDK from "JDK 8u25" to "JDK 8u45" and changed path setting (on Windows and Eclipse). This works for me perfectly!

这个问题是我在更新ADT和SDKs等后遇到的。我做了上面的解决方案,但是根本没用。因此,将JDK从“JDK 8u25”升级到“JDK 8u45”,并更改了路径设置(在Windows和Eclipse上)。这对我来说再合适不过了!