Please ensure that adb is correctly located at问题解决
来源:互联网 发布:非负矩阵分解 重构 编辑:程序博客网 时间:2024/05/22 00:06
遇到问题描述:
运行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:\java\sdk\platform-tools\adb.exe' and can be executed.
解决问题:
百度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 ,运行android程序,ok .
自己总结的在android中常会出现的不好解决的问题和方法
(其中第三个方法经过了四天的折磨。。。。。哎)
1.报错:
BUILD FAILED
D:\workspace\ganji\build.xml:144: The following error occurred while executing this line:
D:\workspace\ganji\build.xml:271: Unable to delete file D:\workspace\ganji\tmp\proguard\tmp.jar
解决:
已经开了一个模拟器了,无法重新编译,必须关闭一个。用于ant
2.报错:
The connection to adb is down, and a severe error has occured.
这个问题谁能解决啊
解决:
cmd跳到sdk tools文件路径下
adb kill-server
然后再adb start-server
3.报错:
The connection to adb is down, and a severe error has occured.
[2010-03-11 09:36:56 - HelloOPone] You must restart adb and Eclipse.
[2010-03-11 09:36:56 - HelloOPone] Please ensure that adb is correctly located at 'D:\OPhoneSDK_1.5
\platform-tools\adb.exe' and can be executed.
解决:
方法1.cmd中adb kill-server,然后adb -startserver
方法2.方法1不管用,那么在任务管理器中杀死adb.exe,然后重启Eclipse。
方法3.方法1和2都不管用,那么查看最后一句报错中:platform-tools中是否有adb.exe(我的错误就是在相关路径下面没有platform-tools文件夹
,所以我选择新建一个文件夹,并且把tools中的文件全部复制到platform-tools中)
4.前面的方法试了还是不行的话,建议重新装一个系统,最好换个系统。有些大牛也说过:MS存在一些小问题[size=large][/size]
更新sdk到2.3后,利用myeclipse启动模拟器可能出现如下错误
[2011-01-03 21:59:57 - HelloAndroid] Android Launch!
[2011-01-03 21:59:57 - HelloAndroid] The connection to adb is down, and a severe error has occured.
[2011-01-03 21:59:57 - HelloAndroid] You must restart adb and Eclipse.
[2011-01-03 21:59:57 - HelloAndroid] Please ensure that adb is correctly located at 'D:/android_develop/SDK/platform-tools/adb.exe' and can be executed.
这个的解决方法是把SDK文件夹里的tools文件夹路径与platform-tools的路径都添加到环境变量(我的电脑-右键-高级-环境变量-classpath)里
adb.exe在2.2版本里是被放在tools文件夹下,但在2.3版本里增加了 platform-tools这个文件夹,而adb.exe被转移至此
然后重启myeclipse,如果依旧如此重启电脑。(注意,重启电脑有时是必须的,我就是因为开始没有重启电脑悲剧了)
——————————————————————————————————————————————————————————————
此外,如果在添加sdk的时候出现找不到文件夹之类的错误时,去下载一个新的ADT,配置安装后重启myeclipse
应该会解决
如果要用新的API 9 ,模拟器也该重新创建了
- 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问题解决
- Android Please ensure that adb is correctly located at问题解决
- 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问题解决
- 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问题解决
- 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 问题解决
- Android layout属性大全
- centos 5.x samba共享文件挂载
- linux释放磁盘空间
- ubuntu下中文问题的解决:输入法、乱码
- 字节数据与十六进制的相互转换,字符串与十六进制的相互转换
- Please ensure that adb is correctly located at问题解决
- (分享)我们对软件的态度
- HTK数据准备工具-HList
- discuz X2.5文件结构说明
- .NET中栈和堆的比较
- 北大ACM 解题思路和源代码
- 在php中public、protected、private三者之间的区别
- [wxWidgets]_[初级]_[wxWidgets-2.9.2编译参数]
- 2013年最具实力的JAVA图书简介