Android Please ensure that adb is correctly located at问题解决,重启就好,别的都扯淡
来源:互联网 发布:java面试基础知识 编辑:程序博客网 时间:2024/05/29 06:50
转:http://hi.baidu.com/lanmosonny240/item/4d405a82ade7ce9a4414cf98
遇到问题描述:
运行android程序控制台输出
[2012-07-18 16:18:26 - ] The connection to adb is down, and a severe error has occured.
[2012-07-18 16:18:26 - ] You must restart adb and Eclipse.
[2012-07-18 16:18:26 - ] Please ensure that adb is correctly located at 'D:\adt-bundle-windows-x86_64-20130219\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,发现是wandoujia .如下所示
tasklist|findstr "6540"
wandoujia_daemon.exe 6540 Console 1 4,276 K
接下来问题就好解决了,在任务管理器kill掉wandoujia_daemon.exe .
2. 将D:\adt-bundle-windows-x86_64-20130219\sdk\platform-tools都加到环境变量中去。
(classpath或者path)
3.重启eclipse,运行android项目,可以了。
关于adb
附:http://www.cnblogs.com/playing/archive/2010/09/19/1830799.html
http://blog.csdn.net/winsunxu/article/details/7042972
- 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问题解决
- 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问题解决
- sqlldr失败后,等待5分钟尝试重传,最多尝试5次(if while break sleep)
- Windows学习总结(1)——win10系统最新快捷键汇总
- Android Studio目录结构浅析
- 分享万能java字符串编码转换工具类
- 邮件发送
- Android Please ensure that adb is correctly located at问题解决,重启就好,别的都扯淡
- qual_camera_video
- 自定义Layout
- java入门教程-8.5Java面向字节流的应用
- 【2】深度学习之排头大兵:Caffe
- IOS开发中的几种设计模式介绍
- iOS使用蓝牙的一些注意事项。
- Android eclipse 打开 总是未响应
- java的反射机制