adb server version (22000) doesn‘t match this client (41); killing...

参考链接: adb server version (31) doesn’t match this client (41); killing… 解决此问题

电脑安装了360手机助手占用了adb的端口引起的。因为套接字的唯一性(一个套接字只能由 协议/网络地址/端口号 唯一确定 ),一个电脑只能有一个程序关联对应的端口,对于adb对应的端口就是5037。

为了验证5037端口是否被占用,可以用netstat -ano|findstr “5037” 去查找5037对应的端口号的进程id 也就是pid。

因为博文里已经说了是 手机助手导致的。我也没有去查这个返回的进程id是否是手机助手的。直接退出手机助手,再次adb shell连接手机成功。

C:\tools\platform-tools>adb shell
adb server version (22000) doesn't match this client (41); killing...
could not read ok from ADB Server
* failed to start daemon
adb.exe: cannot connect to daemon

C:\tools\platform-tools>netstat -ano|findstr "5037"
  TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING       27248

C:\tools\platform-tools>adb shell
* daemon not running; starting now at tcp:5037
* daemon started successfully

相关推荐

  1. Linux 命令kill

    2024-06-07 19:34:06       53 阅读
  2. kill 端口所属进程

    2024-06-07 19:34:06       29 阅读
  3. conda install Solving environment: \ Killed

    2024-06-07 19:34:06       70 阅读
  4. 【yarn】 kill 一个spark任务

    2024-06-07 19:34:06       48 阅读
  5. Day<span style='color:red;'>41</span>

    Day41

    2024-06-07 19:34:06      22 阅读
  6. Linux 作业管理 (bg, fg, jobs, kill)

    2024-06-07 19:34:06       30 阅读
  7. 系统编程 - kill,alarm,read,write

    2024-06-07 19:34:06       25 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-06-07 19:34:06       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-06-07 19:34:06       106 阅读
  3. 在Django里面运行非项目文件

    2024-06-07 19:34:06       87 阅读
  4. Python语言-面向对象

    2024-06-07 19:34:06       96 阅读

热门阅读

  1. 【学习笔记】Redis-AOF日志重写的机制

    2024-06-07 19:34:06       32 阅读
  2. 【路径规划】三维深度矩阵寻路算法

    2024-06-07 19:34:06       32 阅读
  3. Python做Web:深度剖析与多维评价

    2024-06-07 19:34:06       28 阅读
  4. amis源码 onEvent事件动作 和 Action行为按钮解析

    2024-06-07 19:34:06       36 阅读
  5. 1348:【例4-9】城市公交网建设问题

    2024-06-07 19:34:06       30 阅读
  6. Ant-Design-Vue动态表头并填充数据

    2024-06-07 19:34:06       31 阅读
  7. System-Verilog

    2024-06-07 19:34:06       31 阅读
  8. 重新学习stm32(序)stm32简介

    2024-06-07 19:34:06       26 阅读
  9. Redux 入门+面试题

    2024-06-07 19:34:06       31 阅读
  10. openfeign服务相互调用碰到问题总结

    2024-06-07 19:34:06       29 阅读
  11. python生成器

    2024-06-07 19:34:06       25 阅读
  12. Windows11+Ubuntu24.04双系统安装及配置

    2024-06-07 19:34:06       29 阅读