今天,我将 Android Studio 更新到 3.5 版本,突然 ADB 停止工作了。我尝试使用 adb kill-server
和 adb start-server
,但仍然出现以下错误。
adb server version (41) doesn't match this client (39); killing...
ADB server didn't ACK
Full server startup log: /tmp/adb.1000.log
Server had pid: 31799
--- adb starting (pid 31799) ---
adb I 08-21 17:58:31 31799 31799 main.cpp:57] Android Debug Bridge
version 1.0.39
adb I 08-21 17:58:31 31799 31799 main.cpp:57] Version 1:8.1.0+r23-5
adb I 08-21 17:58:31 31799 31799 main.cpp:57] Installed as
/usr/lib/android-sdk/platform-tools/adb
adb I 08-21 17:58:31 31799 31799 main.cpp:57]
adb I 08-21 17:58:31 31799 31799 adb_auth_host.cpp:416]
adb_auth_init...
adb I 08-21 17:58:31 31799 31799 adb_auth_host.cpp:174] read_key_file
'/home/user/.android/adbkey'...
adb I 08-21 17:58:31 31799 31799 adb_auth_host.cpp:391]
adb_auth_inotify_init...
adb I 08-21 17:58:31 31799 31799 adb_auth_host.cpp:467] Calling
send_auth_response
adb server killed by remote request
* failed to start daemon
error: cannot connect to daemon
最佳答案
您是否更改了计算机中的任何路径? SDK路径或其他什么?尝试将终端的默认路径更改为 /usr/lib/android-sdk/platform-tools
然后执行 cthis 命令 adb kill-server
然后 adb start-server
然后是 adb devices
。
并尝试使缓存无效并重新启动
。
关于android - 将 Android Studio 更新到 3.5 版本后无法使用 ADB,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57591746/