且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

ADB 连接错误:无法创建调试桥:无法启动 adb 服务器:无法检测 adb 版本,adb 输出

更新时间:2022-06-07 08:44:13

旧答案:我遇到了同样的问题(Linux Mint 17、32 位 Quiana 中的 ADB).我确保 platform-tools 目录中的文件 ADB 具有可执行权限,但它似乎根本无法运行(即使我尝试停止 Android Studio 并自行运行 ADB).我厌倦了卸载并重新安装 Android SDK 平台工具 (v 23.1) 但这并没有帮助.有没有办法恢复到早期版本的平台工具?

Old Answer: I'm having the same problem (with ADB in Linux Mint 17, 32bit Quiana). I made sure that the file ADB in platform-tools directory has executable permission but it appears that will not run at all (even if I try stopping Android Studio and running ADB on its own). I tired uninstalling and re-installing the Android SDK Platform Tools (v 23.1) but that didn't help. Is there a way to revert back to an earlier version of Platform Tools?

改进的答案:如果您使用 32 位 Linux 系统运行 Android Studio 并且不幸更新到平台工具 23.1.0,您需要恢复到平台工具 23.0.1.

Improved Answer: If you're using a 32-bit Linux system to run Android Studio and have had the misfortune to have updated to platform-tools 23.1.0 you need to revert back to platform-tools 23.0.1.

我是这样做的:

通过以下链接下载 23.0.1 文件:https://dl-ssl.google.com/android/repository/platform-tools_r23.0.1-linux.zip

Download the 23.0.1 files with this link: https://dl-ssl.google.com/android/repository/platform-tools_r23.0.1-linux.zip

将下载的 zip 文件移动到您的 Android SDK 安装目录(类似于 ~/Android/Sdk).

Move the downloaded zip file to the directory where your Android SDK is installed (something like ~/Android/Sdk).

重命名包含 64 位文件的现有目录( ~/Android/Sdk/platform-tools 到 ~/Android/Sdk/platform-tools-64-bit ).注意:您可以删除这些文件,但我保存了它们.它们不占用太多空间.

Rename the existing directory containing the 64-bit files ( ~/Android/Sdk/platform-tools to ~/Android/Sdk/platform-tools-64-bit ). Note: you could just delete these files but I saved them. They don't take up much space.

从 ~/Android/Sdk 目录解压下载的 zip 文件.这应该会创建一个新目录 ~/Android/Sdk/platform-tools ,其中包含 32 位系统所需的 platform-tools 23.0.1 文件和子目录.亚行现在应该像这次更新"破坏它之前那样工作.(糟糕的谷歌,糟糕的,糟糕的)

From the ~/Android/Sdk directory unzip the downloaded zip file. That should have created a new directory ~/Android/Sdk/platform-tools containing the platform-tools 23.0.1 files and sub-directories that you need for your 32-bit system. ADB should now work just like it did before this "update" broke it. (Bad Google, Bad, Bad)

参考:https://code.google.com/p/android/issues/detail?id=196866