您的位置:首页 > 其它

The connection to adb is down, and a severe error has occured. 错误

2013-08-25 20:40 711 查看
错误:The connection to adb is down, and a severe error has occured.

[2010-03-11 09:36:56 - HelloOPone] You must restart adb and Eclipse.

[2010-03-11 09:36:56 - HelloOPone] Please ensure that adb is correctly located at 'D:\androidSDKAeclipse\android-sdk-windows-1.5_r2\platform-tools\adb.exe' and can be executed.

解决:
方法1:cmd中adb kill-server,然后adb start-server
方法2:方法1不管用,那么在任务管理器中杀死adb.exe,然后重启Eclipse。

方法3:方法1和方法2都不能解决。

cmd中adb start-server 出现如下:

C:\Users\xxxx>adb nodaemon server
cannot bind 'tcp:5037'

原来adb server 端口绑定失败

继续查看到底是哪个端口给占用了

C:\Users\xxxxxx>netstat -ano | findstr "5037"
TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 4236
TCP 127.0.0.1:5037 127.0.0.1:49422 ESTABLISHED 4236
TCP 127.0.0.1:49422 127.0.0.1:5037 ESTABLISHED 3840

原来被4236这个进程占用了端口,打开任务管理器,杀掉4236这个进程。(可以在任务管理器菜单,查看->选择列中勾选(PID)进程标识符)

至此问题没有完全解决,再次在cmd中adb start-server

出现:* daemon not running. starting it now on port 5037 *

* daemon started successfully *

重启eclipse,问题解决!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐