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
相关推荐
SH11HF5 小时前
小菜狗的云计算之旅,今天学习MySQL数据库基础知识及操作
adb
@Ryan Ding8 小时前
MySQL主从复制与读写分离概述
android·mysql·adb
feifeigo12315 小时前
升级到MySQL 8.4,MySQL启动报错:io_setup() failed with EAGAIN
数据库·mysql·adb
Edingbrugh.南空1 天前
Flink MySQL CDC 环境配置与验证
mysql·adb·flink
陈卓4101 天前
MySQL-主从复制&分库分表
android·mysql·adb
ladymorgana1 天前
【docker】修改 MySQL 密码后 Navicat 仍能用原密码连接
mysql·adb·docker
好奇的菜鸟3 天前
如何在Ubuntu上检查MySQL是否启动并放开3306端口
mysql·ubuntu·adb
OneT1me3 天前
adb shell中执行system用户权限命令的方法
adb
Polaris_YJH3 天前
360安全卫士占用5037端口(ADB端口)解决方案
adb·端口占用·5037
雨之小13 天前
RK3588调试之旅:adbd服务配置全攻略
adb·rk3588