Please ensure that adb is correctly located 问题的解决.

来源:互联网 发布:南风知我意琰阙txt下载 编辑:程序博客网 时间:2024/06/08 10:03

The connection to adb is down, and a severe error has occured.
You must restart adb and Eclipse.
Please ensure that adb is correctly located at 'C:\Program Files\Android\android-sdk\platform-tools\adb.exe' and can be executed.

原因是adb.exe 没有运行起来,或者说指定的路径下边没有改程序。

解决方法:

1)、将adb的路径添加到环境变量path当中,保存重启eclipse。

2)、如果上述还没有解决,那么在cmd当中手动运行adb start-server 或者 adb.exe kill-server

3)、5037为adb默认端口 查看该端口情况如下:

     netstat -aon|findstr "5037"

     TCP    127.0.0.1:5037   0.0.0.0:0     LISTENING      6540

     发现6540占用了 5037端口,继续查看6540的task,发现是wandoujia  .如下所示

     tasklist|findstr "6540"

     wandoujia_daemon.exe    6540 Console          1      4,276 K

     接下来问题就好解决了,在任务管理器kill掉wandoujia_daemon.exe ,运行android程序,ok .












0 0