adb server version (36) doesn't match this client (39);

时间:2021-12-19 00:36:03

问题描述

手机无法连接电脑
adb server version (36) doesn’t match this client (39);

☁  ~  adb devices
List of devices attached
adb server version (36) doesn't match this client (39); killing...
adb E 08-01 11:51:28 16094 1798575 usb_osx.cpp:333] Could not open interface: e00002c5
adb E 08-01 11:51:28 16094 1798575 usb_osx.cpp:294] Could not find device interface
error: could not install *smartsocket* listener: Address already in use
ADB server didn't ACK
* failed to start daemon *
error: cannot connect to daemon

☁  ~  adb kill-server
☁  ~  adb start-server
adb server version (36) doesn't match this client (39); killing...
adb E 08-01 11:52:46 16127 1802960 usb_osx.cpp:333] Could not open interface: e00002c5
adb E 08-01 11:52:46 16127 1802960 usb_osx.cpp:294] Could not find device interface
error: could not install *smartsocket* listener: Address already in use
ADB server didn't ACK
* failed to start daemon *
error: cannot connect to daemon
☁  ~

问题原因

1.开了模拟器Genymotion
genymotion中的adb命令被占用冲突了(往往是被360手机助手占用了adb的端口所致),直接打开genymotion的Setting,切换到第四个标签页(ADB),选择Use custom Android Sdk tools,然后选择我们开发使用的Sdk路径即可。

2.Chrome调试webview占用了端口
Close all chrome://inspect/#devices windows/tabs