Eclipse IDE:安装Android SDK后无法初始化监视器线程错误?
我刚刚安装了 Eclipse 的 android SDK 插件,每当我启动 IDE (eclipse) 时,我都会收到错误警报“无法初始化监视器线程。无法建立环回连接”
。然后在控制台中,它会重复进行连接尝试,如下所示 [2011-09-04 16:21:53 - DeviceMonitor]Connection attempts: 37
一遍又一遍(其中有 36 条消息)在控制台中,这是第 37 个)。
我的IDE是eclipse classic (helios)。我已经用新版本 3.7 (indigo) 尝试过,但出现了同样的错误。
我一直在努力解决这个问题。我已经完成了所有的谷歌搜索研究等,但我还没能找到解决这个问题的答案......
I just installed the android SDK plugin for Eclipse and whenever I start my IDE (eclipse) I get the error alert "failed to initialize monitor thread. Unable to establish loopback connection"
. Then in the console, It goes onto repeated connection attempts that look like this [2011-09-04 16:21:53 - DeviceMonitor]Connection attempts: 37
Over and over (there were 36 of these messages in the console, that is the 37th).
My IDE is eclipse classic (helios). I've tried it with the new version 3.7 (indigo) but the same error occurs.
I've been trying to work this out. It has been almost 3 weeks I've done all the googling research etc but I've not been able to find an answer that resolved this...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我也遇到了同样的问题,原因是 Java JDK 错误。如果您已经安装了Java JDK 7,请先卸载它,然后重新安装JDK 6 -> 下载链接。
我不知道如果你只是下载 JDK 6 并设置 JAVA_HOME 路径是否有效。
我卸载了 JDK 7,因为我不再使用它了。
I had the same problem and the reason was a wrong Java JDK. If you have installed the Java JDK 7, uninstall it at first and reinstall the JDK 6 -> download link.
I don't know if it works if you just download the JDK 6 and set the JAVA_HOME path to it.
I uninstalled the JDK 7, because I didn't use it anymore.
虽然不是 Android,但此线程也讨论了该问题:
http ://www.java.net/node/693759
Although not Android, this thread also talks about that issue:
http://www.java.net/node/693759
解决方案(解决方法):关闭 Teredo 隧道伪接口。
这可能会将 IP4 转换为 IPv6 地址或其他地址,从而为您的本地主机生成 IPv6 地址(但奇怪的是,PING 仍然会生成 IP4)。无论如何,将其关闭(设备管理器 > 查看 > 显示隐藏的设备 > 右键单击 Teredo > 禁用)可以解决问题!
我发现我的 Win7 安装会在每次启动后重新启用我的 Teredo 设备。即使我卸载了。因此,我制作了一个批处理文件(以管理员身份运行),它发出以下命令:>netsh interface teredo set state returned >"D:\Program Files (x86)\Eclipse\eclipse.exe"
Solution (workaround) : turn off 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!
I found that my Win7 install re-enables my Teredo device after each boot. Even when I deinstall. So I made a batchfile (run as Administrator) which issues the following commands : >netsh interface teredo set state disabled >"D:\Program Files (x86)\Eclipse\eclipse.exe"
我使用 Avast 互联网安全软件。我尝试允许 eclipse.exe 通过防火墙,但它仍然给我错误。
我只是关闭了 Avast 防火墙,同时保持 Windows 防火墙打开,它就工作了。我没有犯任何错误,一切都很顺利。
这可能并不适合所有人,但在遵循几乎所有解决方案线程(没有一个有效)后,我刚刚结束了第 3 方防火墙,然后繁荣起来。她吹了!
我知道这个问题已经有两年多了,但我最近遇到了这个问题,只是想分享我的经验。
I use Avast Internet Security. I tried allowing eclipse.exe through the firewall, but it still gave me the error.
I simply turned off the Avast firewall, while keeping the Windows firewall on, and it worked. I had no errors at all and it's all smooth sailing.
This may not work for everyone, but after following pretty much every solution thread (none of which worked) I just ended the 3rd party firewall, and boom. Thar' she blows!
I know the question is over 2 years old, but I recently ran into this issue and just wanted to share my experience.