“adb server version (31) doesn‘t match this client (40); killing...“问题解决方法

时间:2024-03-28 14:33:55

运行adb命令时出现如下提示:
“adb server version (31) doesn‘t match this client (40); killing...“问题解决方法
问题原因:安卓自带模拟器adb版本和SDK中的adb版本不一致

解决方法:
1.打开安卓SDK文件目录下的platform文件夹(D:\Android\Sdk\platform-tools),复制adb.exe文件
“adb server version (31) doesn‘t match this client (40); killing...“问题解决方法
2.打开安卓自带模拟器的文件夹,找到adb命令所在位置(默认路径为C:\Users\用户名\AppData\Local\Android\sdk\platform-tools),粘贴上一步复制的adb.exe文件,确认替换
“adb server version (31) doesn‘t match this client (40); killing...“问题解决方法
3.重新运行adb命令