adb server is out of date. killing解决方案

来源:互联网 发布:颜值即是正义 知乎 编辑:程序博客网 时间:2024/06/06 21:39

今天在eclipse运行一个安卓项目的时候报了这样一个错误

[2013-10-17 10:44:40 - otherapp] The connection to adb is down, and a severe error has occured.[2013-10-17 10:44:40 - otherapp] You must restart adb and Eclipse.[2013-10-17 10:44:40 - otherapp] Please ensure that adb is correctly located at 'D:\android-sdk-windows\platform-tools\adb.exe' and can be executed.

说是adb挂掉了,有点莫名其妙 ,昨天还好好的。然后我去到dos窗口键入adb shell命令,也报了个错误


谷歌一查才知道是adb server的端口被占用了。。。那这样子就需要知道adb server 用的是那个端口号了,用adb nodaemon server可以查看该端口


5037端口被占用。接下来我们可以利用360安全卫士功能大全里边一个叫浏览防火墙的工具,点击里边的网络连接查看被占用的端口并把它杀掉


我们再重新到eclipse运行程序就能成功了。