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

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

    [html] view plaincopy
     
    1. C:Usersxxxx>adb start-server  
    2. adb server is out of date.  killing...  
    3. ADB server didn't ACK  
    4. * failed to start daemon *  


    adb 不管执行 shell devices 还是logcat 都会报错

    [html] view plaincopy
     
    1. adb server is out of date.  killing...  

    究其源就是adb server没启动

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

    [html] view plaincopy
     
    1. C:Usersxxxx>adb nodaemon server  
    2. cannot bind 'tcp:5037'  

    原来adb server 端口绑定失败

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

    [html] view plaincopy
     
    1. C:Usersxxxxxx>netstat -ano | findstr "5037"  
    2.   TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING       4236  
    3.   TCP    127.0.0.1:5037         127.0.0.1:49422        ESTABLISHED     4236  
    4.   TCP    127.0.0.1:49422        127.0.0.1:5037         ESTABLISHED     3840  

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

    至此问题解决了

  • 相关阅读:
    构建之法阅读笔记02
    学习进度条
    构建之法阅读笔记01
    c++ 与C的区别
    c++ 菜单动态效果
    c++ 方框中绘制菜单代码
    c++ 绘制方框
    c++ 条件编译
    c++ 预处理和多重替换
    c++ 文件共享打开
  • 原文地址:https://www.cnblogs.com/songsiyao/p/3446222.html
Copyright © 2011-2022 走看看