Android Please ensure that adb is correctly located at问题解决
来源:互联网 发布:辐射4 mac 下载 编辑:程序博客网 时间:2024/05/22 05:57
遇到问题描述:
运行android程序控制台输出
[2015-10-8 11:18:26 - ] The connection to adb is down, and a severe error has occured.
[2015-10-8 11:18:26 - ] You must restart adb and Eclipse.
[2015-10-8 11:18:26 - ] Please ensure that adb is correctly located at 'D:\android\sdk\platform-tools\adb.exe' and can be executed.
adb概述(百度百科)
当你启动一个adb客户端,客户端首先确认是否已有一个adb服务进程在运行。如果没有,则启动服务进程。当服务器运行, adb服务器就会绑定本地的TCP端口5037并监听adb客户端发来的命令,—所有的adb客户端都是用端口 5037与adb服务器对话的.
1. 解决问题:
百度google大家多说的是任务管理器 kill掉adb 或者重启adb server,但我任务管理器就没有adb ,猜测是某个程序占用了adb端口。于是按此思路查找。
5037为adb默认端口 查看该端口情况如下:
netstat -aon|findstr "5037"
TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 6540
发现6540占用了 5037端口,继续查看6540的task,发现是kadb(酷狗的一个进程) .如下所示
tasklist|findstr "6540"
kadb.exe 6540 Console 1 4,276 K
接下来问题就好解决了,在任务管理器kill掉kadb.exe .
2.重启eclipse,运行android项目,可以了。
总结问题:
adb端口被占用
使用 netstat -aon|findstr "5037"得出taskid
tasklist|findstr "taskid"
找到占用进程并关闭
- Android Please ensure that adb is correctly located at问题解决
- Android Please ensure that adb is correctly located at问题解决
- Android Please ensure that adb is correctly located at问题解决
- Android Please ensure that adb is correctly located at问题解决
- Android Please ensure that adb is correctly located at问题解决
- Android Please ensure that adb is correctly located at问题解决
- Android Please ensure that adb is correctly located at问题解决
- Android Please ensure that adb is correctly located at问题解决
- Android Please ensure that adb is correctly located at问题解决
- Android Please ensure that adb is correctly located at 问题解决
- Android Please ensure that adb is correctly located at问题解决
- Android Please ensure that adb is correctly located at问题解决
- Android Please ensure that adb is correctly located at问题解决
- Android Please ensure that adb is correctly located at问题解决
- Please ensure that adb is correctly located at问题解决
- Please ensure that adb is correctly located at问题解决
- Please ensure that adb is correctly located at问题解决
- Please ensure that adb is correctly located at问题解决
- 自定义装饰类
- alt和title的区别和写法
- 7th_drv.c
- NSDate 的一些操作(比较、创建、在现有date加减一定时间等)
- LeetCode(90) Subsets II
- Android Please ensure that adb is correctly located at问题解决
- 使用Cookie记住表单用户名
- 实用的AndroidStudio快捷键
- hdu 5460 Poker(暴力)
- Hive安装与配置——深入浅出学Hive
- 多git账户操作
- xinetd: unrecognized service
- Android的一些错误集合!
- 中美互联网论坛,小米为何缺席?