eclipse无法调试android项目

一运行就报错Failed to initialize Monitor Thread: Unable to establish loopback connection。
补充:已关闭防火墙,关闭了虚拟网络,在ini文件设置了ipv4和ipv6的偏好。
控制台不断打印
[2016-01-06 19:42:06 - DeviceMonitor] Connection attempts: 286
[2016-01-06 19:42:07 - DeviceMonitor] Connection attempts: 287
[2016-01-06 19:42:08 - DeviceMonitor] Connection attempts: 288
[2016-01-06 19:42:09 - DeviceMonitor] Connection attempts: 289
[2016-01-06 19:42:10 - DeviceMonitor] Connection attempts: 290
[2016-01-06 19:42:11 - DeviceMonitor] Connection attempts: 291
[2016-01-06 19:42:12 - DeviceMonitor] Connection attempts: 292
[2016-01-06 19:42:13 - DeviceMonitor] Connection attempts: 293
[2016-01-06 19:42:15 - DeviceMonitor] Connection attempts: 294
[2016-01-06 19:42:16 - DeviceMonitor] Connection attempts: 295
[2016-01-06 19:42:17 - DeviceMonitor] Connection attempts: 296
[2016-01-06 19:42:18 - DeviceMonitor] Connection attempts: 297
[2016-01-06 19:42:19 - DeviceMonitor] Connection attempts: 298
[2016-01-06 19:42:20 - DeviceMonitor] Connection attempts: 299
[2016-01-06 19:42:21 - DeviceMonitor] Connection attempts: 300
[2016-01-06 19:42:22 - DeviceMonitor] Connection attempts: 301
[2016-01-06 19:42:23 - DeviceMonitor] Connection attempts: 302
[2016-01-06 19:42:24 - DeviceMonitor] Connection attempts: 303
[2016-01-06 19:42:25 - DeviceMonitor] Connection attempts: 304
[2016-01-06 19:42:26 - DeviceMonitor] Connection attempts: 305
[2016-01-06 19:42:27 - DeviceMonitor] Connection attempts: 306
[2016-01-06 19:42:28 - DeviceMonitor] Connection attempts: 307
[2016-01-06 19:42:29 - DeviceMonitor] Connection attempts: 308
[2016-01-06 19:42:30 - DeviceMonitor] Connection attempts: 309
[2016-01-06 19:42:31 - DeviceMonitor] Connection attempts: 310
[2016-01-06 19:42:33 - DeviceMonitor] Connection attempts: 311
[2016-01-06 19:42:34 - DeviceMonitor] Connection attempts: 312
[2016-01-06 19:42:35 - DeviceMonitor] Connection attempts: 313
[2016-01-06 19:42:36 - DeviceMonitor] Connection attempts: 314
[2016-01-06 19:42:37 - DeviceMonitor] Connection attempts: 315
[2016-01-06 19:42:38 - DeviceMonitor] Connection attempts: 316
[2016-01-06 19:42:39 - DeviceMonitor] Connection attempts: 317
[2016-01-06 19:42:40 - DeviceMonitor] Connection attempts: 318
[2016-01-06 19:42:41 - DeviceMonitor] Connection attempts: 319
[2016-01-06 19:42:42 - DeviceMonitor] Connection attempts: 320
[2016-01-06 19:42:43 - DeviceMonitor] Connection attempts: 321
[2016-01-06 19:42:44 - DeviceMonitor] Connection attempts: 322
[2016-01-06 19:42:45 - DeviceMonitor] Connection attempts: 323
[2016-01-06 19:42:46 - DeviceMonitor] Connection attempts: 324
[2016-01-06 19:42:47 - DeviceMonitor] Connection attempts: 325
[2016-01-06 19:42:48 - DeviceMonitor] Connection attempts: 326

求各位大神告知,不甚感激!!!

5个回答

eclipse抽风了,今天早上换了无线网,然后再换回来,结果就正常了。

是在不行,,换个eclipse不就完了么

Royal_lr
Royal_lr 回复皮胖子: 醉了
接近 5 年之前 回复
qq_31334171
雯雯的断剑 没用的,不是eclipse的问题,我已经解决了,谢谢
接近 5 年之前 回复

1、CMD命令窗口输入:adb nodaemon server 。然后就会提示你哪个端口被占用了。

2、输入netstat -ano | findstr "5037" 。然后会弹出提示告诉你哪些进程占用了该端口,记住非0地址的后面的数字

3、打开任务管理器,点击“进程“,“查看”-“选择列”,勾选PID

4、查找第2步中看到的数字PID,然后结束相关进程,即可

qq_31334171
雯雯的断剑 试过,谢谢你的回答。
接近 5 年之前 回复

参考

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

openFile
-vmargs
-Djava.net.preferIPv4Stack=true

qq_31334171
雯雯的断剑 在eclipse.ini里添加吧,试过,谢谢
接近 5 年之前 回复

看一下端口是否被占用了

qq_31334171
雯雯的断剑 谢谢回答,eclipse抽风了
接近 5 年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐