ADB无法启动

http://zhuyoulong.iteye.com/blog/1873058


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 


至此问题解决了 
------------------------------------------------- 
以下是我的操作记录: 


D:\TDDOWNLOAD\adt-bundle-windows-x86-20130514\sdk\platform-tools>adb kill-serve 

* server not running * 

D:\TDDOWNLOAD\adt-bundle-windows-x86-20130514\sdk\platform-tools>adb start-serv 

adb server is out of date.  killing... 
ADB server didn't ACK 
* failed to start daemon * 

D:\TDDOWNLOAD\adt-bundle-windows-x86-20130514\sdk\platform-tools>adb nodaemon s 
rver 
cannot bind 'tcp:5037' 

D:\TDDOWNLOAD\adt-bundle-windows-x86-20130514\sdk\platform-tools>netstat -ano | 
findstr "5037" 
  TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING       2592 
  TCP    127.0.0.1:5037         127.0.0.1:2051         TIME_WAIT       0 
  TCP    127.0.0.1:5037         127.0.0.1:2052         TIME_WAIT       0 

进入任务管理器杀进程 
再执行确认5037进程是否存在 
D:\TDDOWNLOAD\adt-bundle-windows-x86-20130514\sdk\platform-tools>netstat -ano | 
findstr "5037"
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值