zoukankan      html  css  js  c++  java
  • adb server version (31) doesn't match this client (41); killing...

    使用用 adb devices 提示如下错误

    C:UsersLenovo>adb devices
    adb server version (31) doesn't match this client (41); killing...
    could not read ok from ADB Server
    * failed to start daemon
    adb.exe: failed to check server version: cannot connect to daemon
    

    在这里插入图片描述
    猜测是端口又被某些不法分子占用了,于是执行netstat -ano | findstr " "

    C:UsersLenovo>netstat -ano | findstr "5037"
      TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING       12428
      TCP    127.0.0.1:5037         127.0.0.1:56658        TIME_WAIT       0
      TCP    127.0.0.1:5037         127.0.0.1:56659        TIME_WAIT       0
      TCP    127.0.0.1:5037         127.0.0.1:56660        TIME_WAIT       0
      TCP    127.0.0.1:5037         127.0.0.1:56779        TIME_WAIT       0
      TCP    127.0.0.1:5037         127.0.0.1:56780        TIME_WAIT       0
      TCP    127.0.0.1:5037         127.0.0.1:56781        TIME_WAIT       0
      TCP    127.0.0.1:5037         127.0.0.1:56833        TIME_WAIT       0
      TCP    127.0.0.1:5037         127.0.0.1:56834        TIME_WAIT       0
      TCP    127.0.0.1:5037         127.0.0.1:56835        TIME_WAIT       0
      TCP    127.0.0.1:5037         127.0.0.1:56881        TIME_WAIT       0
      TCP    127.0.0.1:5037         127.0.0.1:56882        TIME_WAIT       0
      TCP    127.0.0.1:5037         127.0.0.1:56883        TIME_WAIT       0
      TCP    127.0.0.1:5037         127.0.0.1:56933        TIME_WAIT       0
      TCP    127.0.0.1:5037         127.0.0.1:56934        TIME_WAIT       0
      TCP    127.0.0.1:5037         127.0.0.1:56935        TIME_WAIT       0
      TCP    127.0.0.1:5037         127.0.0.1:57000        TIME_WAIT       0
      TCP    127.0.0.1:5037         127.0.0.1:57001        TIME_WAIT       0
      TCP    127.0.0.1:5037         127.0.0.1:57002        TIME_WAIT       0
      TCP    127.0.0.1:5037         127.0.0.1:57063        TIME_WAIT       0
      TCP    127.0.0.1:5037         127.0.0.1:57064        TIME_WAIT       0
      TCP    127.0.0.1:5037         127.0.0.1:57065        TIME_WAIT       0
      TCP    127.0.0.1:5037         127.0.0.1:57108        TIME_WAIT       0
      TCP    127.0.0.1:5037         127.0.0.1:57109        TIME_WAIT       0
      TCP    127.0.0.1:5037         127.0.0.1:57110        TIME_WAIT       0
      TCP    127.0.0.1:5037         127.0.0.1:57181        TIME_WAIT       0
      TCP    127.0.0.1:5037         127.0.0.1:57182        TIME_WAIT       0
      TCP    127.0.0.1:5037         127.0.0.1:57183        TIME_WAIT       0
      TCP    127.0.0.1:5037         127.0.0.1:57273        TIME_WAIT       0
      TCP    127.0.0.1:5037         127.0.0.1:57274        TIME_WAIT       0
      TCP    127.0.0.1:5037         127.0.0.1:57275        TIME_WAIT       0
      TCP    127.0.0.1:5037         127.0.0.1:57318        TIME_WAIT       0
      TCP    127.0.0.1:5037         127.0.0.1:57319        TIME_WAIT       0
      TCP    127.0.0.1:5037         127.0.0.1:57320        TIME_WAIT       0
      TCP    127.0.0.1:5037         127.0.0.1:57377        TIME_WAIT       0
      TCP    127.0.0.1:5037         127.0.0.1:57378        TIME_WAIT       0
      TCP    127.0.0.1:5037         127.0.0.1:57379        TIME_WAIT       0
    

    哇塞好大一片,但是最关键的只有第一个,于是执行 tasklist |findstr " "

    
    C:UsersLenovo>tasklist |findstr "12428"
    360MobileLoader.exe          12428 Console                    3     24,296 K
    
    

    看,猜对了,360!

    
    C:UsersLenovo>taskkill -f -t /im 360MobileLoader.exe
    错误: 无法终止 PID 12428 (属于 PID 7548 子进程)的进程。
    原因: 拒绝访问。
    
    

    流氓,粗暴一点直接拔掉真机,嘿嘿,看他还占用。在执行一次 adb devices

    
    C:UsersLenovo>adb devices
    List of devices attached
    C9K7N15722004375        device
    
    

    ok 了

  • 相关阅读:
    链表栈
    双链表
    Linux sar命令查看系统资源使用情况
    Linux 命令(w/who/whoami/who am i)
    shell脚本引用expect
    expect 免交互配置互信
    expect 远程传输文件
    expect 远程执行命令-02
    expect 远程执行命令-01
    expect 脚本自定义变量和位置变量
  • 原文地址:https://www.cnblogs.com/dengxiaoning/p/11681260.html
Copyright © 2011-2022 走看看