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

android项目run出现 The connection to adb is down, and a severe error has occured.错误

网上搜了下解决方法:

1.查看任务管理器,关闭所有adb.exe,任务进程中的豌豆荚或其它手机助手干掉,

  

  重启eclipse即可,我去任务管理器查看没有adb.exe

2.cmd-> adb kill-server 结果是 server not running ->adb start-server 

adb 结果:

server is out of date.  killing...  

ADB server didn't ACK 

接着搜索出如下的方法解决:

今天调试android的时候发现一个诡异的问题

C:\Users\xxxx>adb start-server  

adb server is out of date.  killing...  

ADB server didn't ACK  

* failed to start daemon *  

adb 不管执行 shell devices 还是logcat 都会报错
adb server is out of date.  killing...  
究其源就是adb server没启动

到stackoverflow上查了一下 经过分析整理如下

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       9396
TCP    127.0.0.1:5037         127.0.0.1:54052        ESTABLISHED     9396
TCP    127.0.0.1:5037         127.0.0.1:54053        ESTABLISHED     9396
TCP    127.0.0.1:5037         127.0.0.1:54058        ESTABLISHED     9396
TCP    127.0.0.1:5037         127.0.0.1:54059        ESTABLISHED     9396
TCP    127.0.0.1:5037         127.0.0.1:54060        ESTABLISHED     9396
TCP    127.0.0.1:5037         127.0.0.1:54071        ESTABLISHED     9396
TCP    127.0.0.1:5037         127.0.0.1:54072        ESTABLISHED     9396
TCP    127.0.0.1:5037         127.0.0.1:54073        ESTABLISHED     9396
TCP    127.0.0.1:5037         127.0.0.1:54074        ESTABLISHED     9396
TCP    127.0.0.1:5037         127.0.0.1:54075        ESTABLISHED     9396
TCP    127.0.0.1:5037         127.0.0.1:54076        ESTABLISHED     9396
TCP    127.0.0.1:5037         127.0.0.1:54077        ESTABLISHED     9396

打开任务管理器kill掉9396这个进程。ok

至此问题解决了

你可能感兴趣的:(eclipse,android,adb)