无法检测adb版本,adb
Unable to detect adb version, adb
我在 32 位机器上使用 Ubuntu 15.10 32 位和最新版本的 Android Studio,所有包都是从 SDK 管理器下载的(没有 Intel atom、TV、Wear)。
当我尝试 运行 或调试应用程序(默认最简单的 hello world
)时,控制台显示这些错误并提示弹出窗口:
ADB not responding. If you'd like to retry, then please manually kill "adb" and click 'Restart':
控制台:
13.31.35 Unable to detect adb version, adb output:
/home/user/Android/Sdk/platform-tools/adb: 1:
/home/user/Android/Sdk/platform-tools/adb: Syntax error: ")"unexpected
13.31.37 Error running app: Unable to obtain debug bridge
我已经试过了:
killall adb
adb: no such process
和
adb kill-server
adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
但是还是报错
问题是 platform-tools 是用于 64 位机器的,在用这个版本替换之后:
https://dl.google.com/android/repository/platform-tools_r23.0.1-linux.zip
Android Studio 识别 adb。
但是选择AVD之后,又出现了一个错误:
Cannot launch AVD in emulator.
Output:
ERROR: 32-bit Linux Android emulator binaries are DEPRECATED, to use them
you will have to do at least one of the following:
- Use the '-force-32bit' option when invoking 'emulator'.
- Set ANDROID_EMULATOR_FORCE_32BIT to 'true' in your environment.
Either one will allow you to use the 32-bit binaries, but please be
aware that these will disappear in a future Android SDK release.
Consider moving to a 64-bit Linux system before that happens.
我在 32 位机器上使用 Ubuntu 15.10 32 位和最新版本的 Android Studio,所有包都是从 SDK 管理器下载的(没有 Intel atom、TV、Wear)。
当我尝试 运行 或调试应用程序(默认最简单的 hello world
)时,控制台显示这些错误并提示弹出窗口:
ADB not responding. If you'd like to retry, then please manually kill "adb" and click 'Restart':
控制台:
13.31.35 Unable to detect adb version, adb output:
/home/user/Android/Sdk/platform-tools/adb: 1:
/home/user/Android/Sdk/platform-tools/adb: Syntax error: ")"unexpected
13.31.37 Error running app: Unable to obtain debug bridge
我已经试过了:
killall adb
adb: no such process
和
adb kill-server
adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
但是还是报错
问题是 platform-tools 是用于 64 位机器的,在用这个版本替换之后: https://dl.google.com/android/repository/platform-tools_r23.0.1-linux.zip Android Studio 识别 adb。 但是选择AVD之后,又出现了一个错误:
Cannot launch AVD in emulator.
Output:
ERROR: 32-bit Linux Android emulator binaries are DEPRECATED, to use them
you will have to do at least one of the following:
- Use the '-force-32bit' option when invoking 'emulator'.
- Set ANDROID_EMULATOR_FORCE_32BIT to 'true' in your environment.
Either one will allow you to use the 32-bit binaries, but please be
aware that these will disappear in a future Android SDK release.
Consider moving to a 64-bit Linux system before that happens.