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
相关推荐
2501_915106321 天前
安卓抓包软件2026,免证书抓包 应用层抓包 代理抓包全解析
网络协议·计算机网络·网络安全·ios·adb·https·udp
ymwlchina1 天前
华为手机P40 Plus如何通过adb无线连接
adb·华为·智能手机
00后程序员张2 天前
Android证书绑定抓包失败?Android SSL Pinning绕过实战指南
android·网络协议·计算机网络·网络安全·adb·https·ssl
九皇叔叔4 天前
MySQL ORDER BY 性能优化详解:Using filesort、联合索引、ASC/DESC 与覆盖索引
android·adb
firstacui6 天前
Mysql调优
android·mysql·adb
醉颜凉6 天前
MySQL 8 忘记 root 密码?这两种方法帮你轻松解决
数据库·mysql·adb
2601_962063236 天前
【Spring Boot】掌握 Spring 事务:隔离级别与传播机制解读与应用
spring boot·spring·adb
小成很成8 天前
mysql 8.0.21 升级 mysql 8.0.45(经过生产环境验证)
android·mysql·adb
2501_916007478 天前
免费抓包工具 Windows 和 Mac 怎么选?根据平台来选择工具
网络协议·计算机网络·网络安全·ios·adb·https·udp