您的位置:首页 > 其它

adb server is out of date. killing..

2013-10-23 20:39 579 查看


adb server is out of date. killing...

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

[html] view
plaincopy

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 都会报错

[html] view
plaincopy

adb server is out of date. killing...

究其源就是adb server没启动

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

[html] view
plaincopy

C:\Users\xxxx>adb nodaemon server

cannot bind 'tcp:5037'

原来adb server 端口绑定失败

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

[html] view
plaincopy

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

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

假如我们需要确定谁占用了我们的 80端口

1、Windows平台

在windows命令行窗口下执行:


C:\>netstat -aon|findstr"[b]4236 " [/b]

TCP 127.0.0.1:9050 0.0.0.0:0 LISTENING 3046

看到了吗,端口被进程号为[b]4236 的进程占用,继续执行下面命令:[/b]

C:\>tasklist|findstr"[b]4236 " [/b]

kugou7.exe
[b]4236
Console 0 16,064 K[/b]

很清楚吧,kugou7占用了你的端口

至此问题解决了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: