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

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9011539/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 17:37:11  来源:igfitidea点击:

Failed to initialize monitor Thread: Unable to establish loopback connection

androideclipseadbadt

提问by Kees Koenen

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:

从昨天开始,我的 Eclipse 突然不再工作了。错误是“初始化监视器线程失败:无法建立环回连接”。我用谷歌搜索并尝试了以下内容:

  • IPv6 completely off, if I ping localhost I get back 127.0.0.1
  • Firewall exceptions added for eclipse.exe and adb.exe
  • Adb killed and re-started
  • Reset Adb from eclipse
  • Virus scanners off (temporarily)
  • IPv6 完全关闭,如果我 ping 本地主机,我会返回 127.0.0.1
  • 为 eclipse.exe 和 adb.exe 添加了防火墙例外
  • Adb 被杀死并重新启动
  • 从 Eclipse 重置 Adb
  • 病毒扫描程序关闭(暂时)

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 浏览器透视图),所以有互联网连接。此外,没有代理,只是直接连接。

采纳答案by Kees Koenen

Solution : turn off Teredo Tunneling Pseudo-Interface.

解决方案:关闭 Teredo Tunneling Pseudo-Interface。

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 地址或其他地址,从而为您的 localhost 生成 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 . :

特定于连接的 DNS 后缀。:

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

描述 。. . . . . . . . . . : Teredo隧道伪接口

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::3c47:###:####:####(首选)

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

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

回答by cesarferreira

My solution was: Terminate my proxifier.exe

我的解决方案是:终止我的 proxifier.exe

I guess eclipse doesn't like proxies

我猜 eclipse 不喜欢代理

回答by GIRI KUMAR PANEM

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 total security。现在问题解决了

回答by Bae

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

https://stackoverflow.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=trueis a jvm argument.

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

回答by cmcromance

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 和 SDK 等后遇到了这个问题。我做了上面的解决方案,但根本不起作用。因此,将 JDK 从“JDK 8u25”更新为“JDK 8u45”并更改路径设置(在 Windows 和 Eclipse 上)。这对我来说完美无缺!

回答by Astron

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

但是,我的知识不足,无法理解它为什么起作用。如果有人有任何想法,请告诉我。谢谢