Please ensure that adb is correctly located at……问题解决方案
2016-03-06 23:44
435 查看
遇到问题描述:
运行android程序控制台输出
[2013-10-13 16:45:50 - ] The connection to adb is down, and a severe error has occured.
[2013-10-1316:45:50 - ] You must restart adb and Eclipse.
[2013-10-1316:45:50 - ] Please ensure that adb is correctly located at '<--此处显示adb.exe的全路径-->' and can be executed.
问题分析1:
关闭eclipse,打开windows任务管理器,查看进程中是否有adb.exe或adb.exe *32。
解决方案1:
如果有则关闭该进程,重新启动eclipse即可;
问题分析2:
windows任务管理器中就找不到adb.exe或adb.exe *32的进程,可以尝试手动启动adb.exe ;如果手动启动后还找不到adb.exe进程,则 只有一种可能就是adb.exe进程的端口被占用,导致adb.exe未能正常启动所致(adb默认端口为5037)。
解决方案2:
1、查看端口使用情况:
netstat -aon|findstr "5037"
TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 5004
2、发现5004占用5037端口,查看5004的task:
tasklist|findstr "5004"
wandoujia_daemon.exe 5004 Console 1 4,276 K
打开windows管理器结束wandoujia_daemon.exe该进程,启动eclipse,如果adb.exe未能启动,手动启动即可;
运行android程序控制台输出
[2013-10-13 16:45:50 - ] The connection to adb is down, and a severe error has occured.
[2013-10-1316:45:50 - ] You must restart adb and Eclipse.
[2013-10-1316:45:50 - ] Please ensure that adb is correctly located at '<--此处显示adb.exe的全路径-->' and can be executed.
问题分析1:
关闭eclipse,打开windows任务管理器,查看进程中是否有adb.exe或adb.exe *32。
解决方案1:
如果有则关闭该进程,重新启动eclipse即可;
问题分析2:
windows任务管理器中就找不到adb.exe或adb.exe *32的进程,可以尝试手动启动adb.exe ;如果手动启动后还找不到adb.exe进程,则 只有一种可能就是adb.exe进程的端口被占用,导致adb.exe未能正常启动所致(adb默认端口为5037)。
解决方案2:
1、查看端口使用情况:
netstat -aon|findstr "5037"
TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 5004
2、发现5004占用5037端口,查看5004的task:
tasklist|findstr "5004"
wandoujia_daemon.exe 5004 Console 1 4,276 K
打开windows管理器结束wandoujia_daemon.exe该进程,启动eclipse,如果adb.exe未能启动,手动启动即可;
相关文章推荐
- 将jar 作为linux服务程序运行的方法.
- appWidget的学习理解
- 用树状结构显示BBS的帖子及其回帖,使用递归方法.
- 软件测试技术 hw1
- 《我是IT小小鸟》读笔
- CSS清浮动
- linux第6天 流协议-粘包
- 程序员修炼之道-笔记
- PHP创建一个炫酷的图表
- CentOS6.5中修改yum源
- 强缓存引起问题解决方案
- Prometheus监控 - 简介、架构及基本环境配置
- java精品博客收集
- MySQL安装、配置和使用(一)
- Java经典设计模式之五大创建型模式(附实例和详解)
- Java经典设计模式之五大创建型模式(附实例和详解)
- Java经典设计模式之五大创建型模式(附实例和详解)
- Java经典设计模式之五大创建模式(附实例和详解)
- 提升
- 第五章 初始化与清理