首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法检测adb版本,adb

无法检测adb版本,adb
EN

Stack Overflow用户
提问于 2016-01-18 20:46:01
回答 1查看 10.9K关注 0票数 1

我在32位机器上使用Ubuntu 15.10 32位和最新版本的Android Studio,所有的包都是从SDK管理器下载的(没有Intel atom,TV,Wear)。

当我尝试运行或调试应用程序(默认的最简单的hello world)时,控制台显示以下错误并提示弹出窗口:

代码语言:javascript
复制
ADB not responding. If you'd like to retry, then please manually kill "adb" and click 'Restart':

控制台:

代码语言:javascript
复制
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

我已经试过了:

代码语言:javascript
复制
killall adb
adb: no such process

代码语言:javascript
复制
adb kill-server
adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *

但是错误仍然会发生。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-01-19 01:17:50

问题是,这些平台工具是针对64位机器的,在用这个版本替换后:https://dl.google.com/android/repository/platform-tools_r23.0.1-linux.zip Android Studio识别出了adb。但在选择AVD之后,又出现了另一个错误:

代码语言:javascript
复制
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.
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/34855162

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档