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

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

    1. C:\Users\xxxx>adb start-server 
    2. adb server is out of date.  killing... 
    3. ADB server didn't ACK 
    4. * failed to start daemon * 
    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 都会报错

    1. adb server is out of date.  killing... 
    adb server is out of date.  killing...

    究其源就是adb server没启动

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

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

    原来adb server 端口绑定失败

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

    1. C:\Users\xxxxxx>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 
    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

    应该使用taskkill命令 kill 掉进程 4236.
    taskkill /f /pid 4236 

    在命令行输入taskkill /?, 查看taskkill具体命令参数信息。

    至此问题解决了

  • 相关阅读:
    python—虚拟环境搭建
    pytnon—线程,进程
    python——新excel模块之openpyxl
    装饰器——应用
    css样式
    HTML
    广图登陆知网下载资源教程
    使用k-近邻算法改进约会网站的配对效果
    k-近邻算法概述
    机器学习基础
  • 原文地址:https://www.cnblogs.com/rosepotato/p/3123910.html
Copyright © 2011-2022 走看看