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 复制代码
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
相关推荐
User_芊芊君子8 小时前
0 基础学 MySQL !核心知识点梳理,搞定库表操作与 CRUD
数据库·mysql·adb
九皇叔叔1 天前
MySQL8.0 版本安装部署
android·adb
蓝眸少年CY2 天前
MaxWell 高级教程
adb
seabirdssss3 天前
Flutter 开发环境配置
android·windows·flutter·adb
不会写DN3 天前
如何排查 MySQL 慢查询
数据库·mysql·adb
su_ym81103 天前
adb原理及常用命令介绍
adb
REDcker3 天前
Android ADB 命令教程与速查
android·adb
l1o3v1e4ding3 天前
排查linux CentOS7.6的mysql(5.7.27)内存泄漏因OOM被系统kill的问题
linux·mysql·adb
java资料站4 天前
Docker 快速部署 MySQL 主从复制(一主一从)
mysql·adb·docker
Trouvaille ~4 天前
【MySQL】视图:虚拟表的妙用
数据库·mysql·adb·面试·数据处理·后端开发·视图