zoukankan      html  css  js  c++  java
  • adb server is out of date. killing...

      在开发中遇到N回 adb server is out of date. killing... 这个问题,前几次都是在任务管理中找到adb.exe关掉后,再restart eclipse就可以,实在不行就重新电脑,后来自己想想这终究不是解决问题的办法,今天决定彻底的了解下根由。

    C:Usersxxxx>adb start-server  
    adb server is out of date.  killing...  
    ADB server didn't ACK  
    * failed to start daemon *  
    

      

    adb 不管执行 shell devices 还是logcat 都会报错,在eclipse的console中,究其源就是adb server没启动。

    adb server is out of date.  killing...  
    

    经过查找有关资料整理解决办法如下:

    在cmd中

    运行:C:Usersxxxx>adb nodaemon server  
    结果显示: cannot bind 'tcp:5037'  
    

    原来adb server 端口绑定失败

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

    运行: C:Usersxxxxxx>netstat -ano | findstr "5037"
    显示:   TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING       11284
            TCP    127.0.0.1:5037         127.0.0.1:49422        ESTABLISHED     11284
            TCP    127.0.0.1:49422        127.0.0.1:5037         ESTABLISHED     3840
    

      

    关闭掉进程pid=11284

     

    运行: tskill 11284

      

     最后重行 restart eclpise 就可以了。

  • 相关阅读:
    并发编程3
    并发编程2
    4/23
    4/22
    并发编程1
    粘包问题
    Navicat12激活
    IDEA创建maven项目报错解决:Failed to create a Maven project: 'C:/Users/../IdeaProjects/../pom.xml' already e
    IDEA
    windows下查看端口运行情况--解决端口冲突问题
  • 原文地址:https://www.cnblogs.com/sunfb/p/3479977.html
Copyright © 2011-2022 走看看