Please ensure that adb is correctly located 问题的解决
来源:互联网 发布:手机淘宝怎么看店铺号 编辑:程序博客网 时间:2024/05/18 03:35
1. 现象:
运行写好的应用程序时,出现“Please ensure that adb is correctly located at 'E:/src/android23sdk/android-sdk_r08-windows/android-sdk-windows/platform-tools' and can be executed.”提示。
2. 解决方法:
很明显,是因为在对应的文件夹下找不到adb的问题。
将android-sdk-windows/platform-tools和android-sdk-windows/tools都加到环境变量中去。
(我的电脑-右键-高级-环境变量-classpath(或者path,我的做法是加到path中))
如未能解决问题:
遇到问题描述:
运行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 .
- Please ensure that adb is correctly located 问题的解决
- Please ensure that adb is correctly located 问题的解决
- Please ensure that adb is correctly located 问题的解决
- Please ensure that adb is correctly located 问题的解决 .
- Please ensure that adb is correctly located 问题的解决
- Please ensure that adb is correctly located 问题的解决 .
- Please ensure that adb is correctly located 问题的解决.
- Please ensure that adb is correctly located 问题的解决
- Please ensure that adb is correctly located 问题的解决
- Please ensure that adb is correctly located
- Please ensure that adb is correctly located
- Please ensure that adb is correctly located
- 如何解决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 "xxxx......"问题
- 关于遇到Please ensure that adb is correctly located at 'D:\Java\sdk\platform-tools\adb.exe'...问题的解决
- Android 入门问题与解决(一)Please ensure that adb is correctly located at...
- Web性能优化方案
- Buildroot自动化交叉编译工具
- 最全ASCII对应码表-键值
- 拷贝构造函数和赋值运算符
- 移植2.6.38内核到s3c6410问题
- Please ensure that adb is correctly located 问题的解决
- js,java如何将秒转换成几时几分几秒
- 深入分析Java使用+和StringBuilder进行字符串拼接的差异
- Exercises 4.1 E1
- hdoj 2602 Bone Collector (0-1)背包
- Android屏幕适配原理
- Android 添加新硬件平台
- c#模拟登录,cookie问题
- hdu(4461) The Power of Xiangqi