在测试设备上安装 Android O 预览版后,我的 ADB 停止工作并开始给我这个错误。
adb server version (36) doesn't match this client (39); killing...
adb E 03-27 08:01:55 2925 147690 usb_osx.cpp:333] Could not open interface: e00002c5
adb E 03-27 08:01:55 2925 147690 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
我在这个问题上遇到的唯一答案是 Genymotion 与 ADB 不同步,但我不使用 Genymotion。任何帮助将不胜感激。我已经擦除并重新安装了 Android Studio 以及它的所有工具和设置,但似乎仍然存在这个问题。
原文由 HTMLlama 发布,翻译遵循 CC BY-SA 4.0 许可协议
在我的情况下,当我将环境 adb 路径设置为
~/.android-sdk/platform-tools
时发生此错误(例如,通过自制软件安装 android-platform-tools 时会发生这种情况),版本为 36,但 Android Studio 项目具有 Android SDK下一条路径~/Library/Android/sdk
adb 版本为 39。我已将我的 PATH 平台工具更改为
~/Library/Android/sdk/platform-tools
并且错误已解决