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
相关推荐
ZePingPingZe19 小时前
DriverManager、DataSource、数据库驱动以及数据库连接池的关系
android·数据库·adb
TeleostNaCl20 小时前
如何在 Android debug 的时候使用 adb install 命令降级安装应用
android·经验分享·adb·android runtime
天向上1 天前
ubuntu系统adb shell报错 ADB server didn‘t ACK
android·linux·ubuntu·adb
tzhou644521 天前
MySQL备份与恢复
数据库·mysql·adb
元气满满-樱2 天前
MySQL基础管理
android·mysql·adb
星环处相逢2 天前
MySQL主从复制与读写分离深度解析及实战
adb
musk12122 天前
ADB 常用命令总结(内容由 AI 生成)
adb
Yyyy4822 天前
K8s 部署 MySQL 主从复制集群
adb
翔云1234562 天前
服务器异常崩溃,GTID 是否会出现在 mysql.gtid_executed 表但不在 binlog 中
服务器·mysql·adb
海上飞猪2 天前
【Mysql】Mysql的安装部署和使用
android·mysql·adb