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
相关推荐
活宝小娜15 天前
mysql详细安装教程
数据库·mysql·adb
zhangjin112016 天前
adb install和 pm install 的区别是什么?
adb
炼川淬海DB17 天前
数据库开发规范
android·adb·数据库开发
何极光17 天前
MySQL 8.0详细安装教程(附下载地址)
数据库·mysql·adb
sevencheng79817 天前
【ADB】adb命令行常用按键模拟代码
linux·adb·模拟按键,返回键,音量键
QX_hao18 天前
mysqldump-vs-xtrabackup
adb·mysql备份
云计算磊哥@19 天前
运维开发宝典028-MySQL04数据库热备
数据库·adb·运维开发
charlee4419 天前
Unity在安卓端如何调试输出信息
android·unity·adb·游戏引擎·真机调试
ai_coder_ai20 天前
如何使用adb实现自动化脚本?
运维·adb·自动化
pigs201820 天前
mysql8.0 access denied for user root localhost account is locked
数据库·adb