android - 将 Android Studio 更新到 3.5 版本后无法使用 ADB

标签 android android-studio

今天,我将 Android Studio 更新到 3.5 版本,突然 ADB 停止工作了。我尝试使用 adb kill-serveradb 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/

相关文章:

未从后台调用 Android ViewModel 观察者

android - 通过 DatagramSocket 持续发送发送者数据

android - 应用程序 :srcCompat - Vector drawable shows up in design preview, 但未显示在应用程序中

java - ExpandableListView 什么都不显示

android - 如何正确地将属性添加到 build.gradle 以从 java 访问?

javascript - 我有错误:E/RecyclerView:未连接适配器;跳过布局

android - (Android) 将进度条放置在 View 之上

java - openweathermap API 有方括号中的部分,无法在 Android Studio 中调用该 json 数据

java - java中的百分比函数

Android BLE GATT 断开连接与设备断开连接