红联Linux门户
Linux帮助

Ubuntu Adt-Eclipse程序启动报错The connection to adb is down

发布时间:2017-06-03 11:18:58来源:linux网站作者:SnowLIVE
Ubuntu使用Eclipse开发Android报错:The connection to adb is down, and a severe error has occured.
 
问题描述:
在给Ubuntu安装开发Android 的adt-Eclipse时,安装完成之后,重新创建了一个项目之后,运行时报错:具体报错信息如下:
The connection to adb is down, and a severe error has occured.   
[HelloOPone] You must restart adb and Eclipse.   
[HelloOPone] Please ensure that adb is correctly located at '/home/Program/PAccess/Sdk/platform-tools' and can be executed.  
遇到这种问题之后,我第一时间找到网上寻求帮助,但是,网上大多的解决方案是说,先开启任务管理器,关掉已存在的adb程序,然后,在sdk下的platform-tools下执行命令:adb kill-server,之后在实行adb start-server就可以了;还有一种方法说的是:在命令行窗口输入:netstat -ato 命令查看占用5037端口的程序是哪个,干掉他,然后再重启adb就可以了。但是,不知道其他人的情况,我这里解决不了。
 
解决方案
后来我想到Ubuntu有好多的软件是需要命令安装的,所以,我就在Ubuntu上重新安装了Android-tools-adb,安装完成之后,问题完美解决。
命令如下:
sudo apt install android-tools-adb
安装完成之后,重启adt-eclipse问题解决。
 
本文永久更新地址:http://www.linuxdiyf.com/linux/31239.html