打开eclipse提示:“Failed to initialize Monitor Threa...

今天忽然遇到这个问题,很奇怪,上周五还好好的,周末没有打开过eclipse。

百度了一下,答案都千篇一律,提示关掉防火墙,重启adb,但是我试了,对我都没有效果。
后来在http://stackoverflow.com上面找到了这个问题,按照建议做,果然好了。

疑问:
虽然暂时没有问题了,但是我还是不明白为什么会这样,期待有经验的的高手们路过的时候给点参考。

下面是http://stackoverflow.com上的问题和解决方法,可能不一定能解决所有的该类问题,但是贴出来,希望有点帮助。

问题:

I have a problem, when I want to start developing applications for android, I did everything like in manualhere but after installing ADT Plugin in Eclipse I am still getting this error :

[2011-12-29 14:34:56 - ddms] Failed to initialize Monitor Thread: Unable to establish loopback connection

then, if I try to run an application this appear :

[2011-12-29 14:41:42 - TestApp] ------------------------------ [2011-12-29 14:41:42 - TestApp] Android Launch! [2011-12-29 14:41:42 - TestApp] Connection with adb was interrupted. [2011-12-29 14:41:42 - TestApp] 0 attempts have been made to reconnect. [2011-12-29 14:41:42 - TestApp] You may want to manually restart adb from the Devices view.

解决方法:

No need to turn off tredo interface: simply add -Djava.net.preferIPv4Stack=true ineclipse.ini:

 openFile -vmargs -Djava.net.preferIPv4Stack=true

转载于:https://my.oschina.net/xsjayz/blog/99364

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值