我在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 *但是错误仍然会发生。
发布于 2016-01-19 01:17:50
问题是,这些平台工具是针对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.https://stackoverflow.com/questions/34855162
复制相似问题