错误: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:androidSDKAeclipseandroid-sdk-windows-1.5_r2platform-toolsadb.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:Usersxxxx>adb nodaemon server
cannot bind 'tcp:5037'
原来adb server 端口绑定失败
继续查看到底是哪个端口给占用了
C:Usersxxxxxx>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,问题解决!