简体   繁体   English

Android Studio-无法在Ubuntu上找到ADB

[英]Android studio - unable to locate adb on ubuntu

I am trying to install Android Studio on my ubuntu 14. 我正在尝试在Ubuntu 14上安装Android Studio。

Following the official guide While the setup wizard is downloading the components, I get this message: 遵循官方指南在安装向导下载组件时,出现以下消息:

.... Updated ADB to support the USB devices declared in the SDK add-ons. ....更新了ADB以支持SDK附加组件中声明的USB设备。 Stopping ADB server failed (code -1). 停止ADB服务器失败(代码-1)。 Unable to run 'adb': Cannot locate program "/home/muser/Android/Sdk/platform-tools/adb": error=2, No such file or directory. 无法运行“ adb”:找不到程序“ / home / muser / Android / Sdk / platform-tools / adb”:错误= 2,没有此类文件或目录。 Starting ADB server failed (code -1). 启动ADB服务器失败(代码-1)。 .... ....

There are no Android folder under /home/muser / home / muser下没有Android文件夹

Why is it searching it in that directory? 为什么要在该目录中搜索? How to fix it? 如何解决?

After installing Android Studio, just run the following command. 安装Android Studio后,只需运行以下命令。

sudo apt-get install android-tools-adb

[EDIT] - I installed Android Studio from here [编辑]-我从这里安装了Android Studio

It's not adb . 不是adb It is android-tools-adb . 这是android-tools-adb Hence you need to use - 因此,您需要使用-

sudo apt-get install android-tools-adb

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM