Ubuntu Adt-Eclipse程序启动报错:The connection to adb is down, and a severe error has occured.
来源:互联网 发布:手机时间提醒软件 编辑:程序博客网 时间:2024/06/06 20:09
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. [2013-09-06 09:36:56 - HelloOPone] You must restart adb and Eclipse. [2010-09-01 09:36:56 - 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 server
还有一种方法说的是:
在命令行窗口输入:netstat -ato
命令查看占用5037端口的程序是哪个,使用kill -9 程序PID
干掉他,然后再重启adb就可以了。
如果上面的方法还是解决不了问题,那么可能是因为系统有个默认自启的adb。可以通命令查看该自启动的adb的pid。
snowlive@snowlive:~$ ps -ef |grep adb 501 1685 1 0 9:35上午 ?? 0:00.32 adb -L tcp:5037 fork-server server --reply-fd 4 501 1804 913 0 9:36上午 ttys000 0:00.00 grep adb
第二个参数就是改程序的pid。
显然,是默认自启程序是adb -L,关闭方式为,在命令行输入: sudo kill -9 adb对应PID
命令。在上面的例子中,adb对应的PId为1685。所以结束上面的程序的命令是sudo kill -9 1685
。
如此问题解决。
阅读全文
0 0
- Ubuntu Adt-Eclipse程序启动报错:The connection to adb is down, and a severe error has occured.
- Eclipse报错The connection to adb is down, and a severe error has occured
- eclipse adb启动不了 报The connection to adb is down, and a severe error has occured.
- 报错:The connection to adb is down, and a severe error has occured.
- 运行app,报“The connection to adb is down, and a severe error has occured.”错误
- Android 启动异常:The connection to adb is down, and a severe error has occured
- eclipse The connection to adb is down, and a severe error has occured 解决方法
- eclipse The connection to adb is down, and a severe error has occured
- Eclipse 提示:The connection to adb is down, and a severe error has occured.
- eclipse-----------出现The connection to adb is down, and a severe error has occured的解决方法
- eclipse:关于The connection to adb is down, and a severe error has occured.
- Android程序出错:The connection to adb is down, and a severe error has occured
- Eclipse 与模拟器无法连接报:The connection to adb is down, and a severe error has occured.异常
- eclipse启动Android调试出错:The connection to adb is down, and a severe error has occured.
- The connection to adb is down, and a severe error has occured. You must restart adb and Eclipse.解决办法
- The connection to adb is down, and a severe error has occured.You must restart adb and Eclipse.
- The connection to adb is down, and a severe error has occured. You must restart adb and Eclipse.Ple
- The connection to adb is down, and a severe error has occured
- 最详细的windows系统安装教程,解惑一切问题
- 补题补题,stack的应用
- CentOS 7 安装 MySQL5.6
- git 版本回退
- STM32F030 ADC1的DMA采样问题
- Ubuntu Adt-Eclipse程序启动报错:The connection to adb is down, and a severe error has occured.
- 编译错误解决:implicit declaration of function 'close' is invalid in C99
- java中的数据类型和变量
- 【BZOJ】1628 [Usaco2007 Demo]City skyline 单调栈
- JavaWeb 学习笔记(三)GenericServlet和HttpServlet介绍
- weui的模板
- 线性筛法(欧拉筛)
- vmwear 上运行ubantu发行版
- MQTT Server搭建(apache-apollo)和MQtt Client搭建