我在32位计算机上使用Ubuntu 15.10 32位,以及从SDK管理器下载所有软件包的最新版Android Studio(没有Intel原子,电视,佩戴)。
当我尝试运行或调试App(默认最简单的" 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 *
但错误仍然存在。
任何帮助将不胜感激。 感谢
答案 0 :(得分:1)
问题是平台工具是用于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.