今天,我将Android Studio更新到了3.5版,突然亚行停止了工作。我尝试使用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
答案 0 :(得分:0)
您是否更改了计算机中的任何路径? SDK路径还是其他?尝试将终端的默认路径更改为/usr/lib/android-sdk/platform-tools
,然后依次执行cthis命令adb kill-server
然后adb start-server
然后adb devices
。
并尝试invalidate caches and restart
。