Android adb端口被占用的解决办法

 

http://hi.baidu.com/liuhuman/item/2e7dae376aadb1c7392ffa8b

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

1 C:\Users\xxxx>adb start-server
2 
3 adb server is out of date.  killing...
4 
5 ADB server didn't ACK
6 
7 * failed to start daemon *

 


到stackoverflow上查了一下 经过分析整理如下:
究其源就是adb server没启动

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

 

原来adb server 端口绑定失败

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

 1 C:\Users\xxxxxx>netstat -ano | findstr "5037"
 2 
 3   TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING       4628
 4 
 5   TCP    127.0.0.1:5037         127.0.0.1:1085         TIME_WAIT       0
 6 
 7   TCP    127.0.0.1:5037         127.0.0.1:1086         TIME_WAIT       0
 8 
 9   TCP    127.0.0.1:5037         127.0.0.1:1096         TIME_WAIT       0
10 
11   TCP    127.0.0.1:5037         127.0.0.1:1097         TIME_WAIT       0

 

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

posted on 2013-10-12 10:57  Brown Qin  阅读(2153)  评论(0编辑  收藏  举报

导航