[Android] The connection to adb is down, and a severe error has occured
一.ADB server didn't ACK
在配置完Android环境后,运行第一个程序时,遇到了如下错误:
ADB server didn't ACK
* failed to start daemon *
它可能的原因是端口5037被占用,需要查找占用5037(Android默认)端口的PID,在cmd中输入:
netstat -ano | findstr "5037"
输出进程:
TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 9292
TCP 127.0.0.1:5037 127.0.0.1:49422 ESTABLISHED 9292
TCP 127.0.0.1:49422 127.0.0.1:5037 ESTABLISHED 3840
此时把该进程“9292”结束,代码如下:
TASKLIST | findstr "9292"
二.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.
Please ensure that adb is correctly located at 'D:\..\platform-tools\adb.exe' and can be executed.
如下图所示:
解决方法是在cmd中调用adb kill-server,再调用adb start-server开启服务.但是可能会出现错误:
adb server is out of date. killing...
ADB server didn't ACK
* failed to start daemon *
这是因为端口号被占用,查看豌豆荚或手机助手占用端口号,将kadb\qadb进程关闭.
具体方法如下:
1.先将Eclipse和豌豆荚关掉,同时结束进程kadb.
2.使用cd去到platform-tools文件夹下(含有adb.exe),并开启adb服务如我的指令是:
G:
cd G:\software\Program software\Android\adt-bundle-windows-x86_64-20140321\sdk\platform-tools
adb start-server
成功时输出:
* daemon not running.Starting it now on port 11888*
* daemon started successfully *
最后点击platform-tools文件夹中adb.exe应用程序,再运行程序即可.
注意上面的程序上面的程序输出端口号为11888,如果你的还是不成功,可以修改环境的端口号,如下:
修改端口号再按上面的步骤实现即可.这是配置Android+Eclipse的错误解决方案,希望对你有用~
(By:Eastmount 2014-10-20 夜2点 http://blog.csdn.net/eastmount/)
[Android] The connection to adb is down, and a severe error has occured相关推荐
- Android开发之 adb 启动问题或是部署应用不成功,出现“The connection to adb is down, and a severe error has occured.”错误...
首先是今天想测试下应用,没有问题的话就进行下一步的操作来着,结果遇到这个问题, The connection to adb is down, and a severe error has occure ...
- eclipse运行android项目出现The connection to adb is down, and a severe error has occured.的问题
问题描述:在eclipse运行android项目时出现以下信息: [plain] view plaincopy The connection to adb is down, and a severe ...
- 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 Ec ...
- The connection to adb is down, and a severe error has occured.
今天安装安卓的开发环境,写了一个helloworld,运行时发现出现错误: The connection to adb is down, and a severe error has occured. ...
- The connection to adb is down, and a severe error has occured
ADB server didn't ACK * failed to start daemon * 问题描述:在eclipse的Logcat出现错误 [2014-01-08 14:00:07 - adb ...
- 转 The connection to adb is down, and a severe error
相信不少同学和我一样遇到这个问题,有时候搞的还要重启电脑,那究竟是什么原因导致的呢,很明显,你的端口被占用了,那下面给出终极解决方案: 一.首先描述症状,如下图 二.出现问题了,首先确定你的sdk目录 ...
- android中The connection to adb is down .. You must restart adb and Eclipse问题的解决
报错如下: The connection to adb is down, and a severe error has occured. [2010-03-11 09:36:56 - HelloOPo ...
- android中The connection to adb is down,问题和解决 AndroidEclipseAntXML
1.报错: BUILD FAILED D:\workspace\ganji\build.xml:144: The following error occurred while executing th ...
- 遇到问题描述:Android Please ensure that adb is correctly located at问题解决
遇到问题描述: 运行android程序控制台输出 [2013-11-04 16:18:26 - ] The connection to adb is down, and a severe error ...
最新文章
- tomcat1.8,tomcat-users.xml文件中如下修改才可以使用app manager登录,其中的roles有哪些枚举需要确认
- LruDiskCache要点--不可不用的磁盘缓存工具类
- VC用MFC开发的圆形进度条控件
- Maven and Nexus2
- 无代码调整聚类热图分支顺序
- 实验一 分治与递归—用分治法实现元素选择 java算法
- 学习笔记 | 读完《公开募集证券投资基金销售机构监督管理办法》的几点感受
- php教程 网易,网易开源镜像使用帮助
- java移库数据同步,洗车管理系统会员管理+门店店务同步管理
- AXI Memory-Mapped SRIO收发控制器
- UBUNTU——启动栏图标问号?异常
- Allegro PCB 转 PADS Layout 之后的修修补补
- c语言中锁的作用,C语言实现原子锁(二)
- python是面向对象开发_Python开发之路-面向对象
- 解决Windows server 2003不认U盘
- txt文本去重复 亲测50G文本高效去重复
- 银行卡识别-自动识别银行卡号
- 美团2021校招笔试-编程题-第10场
- PHP 免费获取手机号码归属地
- 电商项目_dwd主题域