adb server version (41) doesn’t match this client (40)

报错信息:

adb server version (41) doesn't match this client (40); killing...
ADB server didn't ACK
Full server startup log: /var/folders/8t/qb549h693bgc5klgvpfjp6dm0000gq/T//adb.503.log
Server had pid: 5001
--- adb starting (pid 5001) ---
adb I 11-09 11:40:01  5001 19143601 main.cpp:56] Android Debug Bridge version 1.0.40
adb I 11-09 11:40:01  5001 19143601 main.cpp:56] Version 4986621
adb I 11-09 11:40:01  5001 19143601 main.cpp:56] Installed as /usr/local/bin/adb
adb I 11-09 11:40:01  5001 19143601 main.cpp:56]
adb I 11-09 11:40:01  5001 19143601 auth.cpp:421] adb_auth_init...
adb I 11-09 11:40:01  5001 19143601 auth.cpp:174] read_key_file '/Users/dmemory/.android/adbkey'...
adb server killed by remote request

* failed to start daemon
error: cannot connect to daemon

原因:
可能后台运行了多个 adb 导致的,关闭所有的 adb 进程
(也可以看看有没有 Android Studio,先把这个关了),
再重启 adb server 即可。

发表评论