Please ensure that adb is correctly located at 'D:\java\sdk\platform-tools\adb.exe' and can be execu
来源:互联网 发布:系统图标网络关闭 编辑:程序博客网 时间:2024/06/05 08:30
Android Please ensure that adb is correctly located at问题解决
遇到问题描述:
运行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.
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 ,运行android程序,ok .
2. 将android-sdk-windows/platform-tools和android-sdk-windows/tools都加到环境变量中去。
(classpath或者path)
我都试过了还是不行,继续百度中。。。。。。。。。。
3.我把豌豆荚给卸载了,还是不行,最后:
今天遇见了这个问题 因为我更新了最新的adt 出现ADB server didn't ACK, failed to start daemon 然后你想启动一个程序 这个时候又会出现Please ensure that adb is correctly located at 'D:\android-sdk-windows\platform-tools\adb.exe' and can be executed. "
首先呢 查看是否查看任务管理器,是否有关闭所有adb.exe 有的关掉
将将android-sdk-windows\platform-tools和android-sdk-windows\tools都加到环境变量中去
测试一下能启动不能 如果不能
运行一下命令行
adb kill-server
adb start-server
这个时候可能出现
D:\android-sdk-windows\platform-tools>adb kill-server
D:\android-sdk-windows\platform-tools>adb start-server
* daemon not running. starting it now on port 5037 *
ADB server didn't ACK
* failed to start daemon *
如果还是有毛病 这个时候唯一的选择,我这里呢 没有听从网上的 说啥重启机器 重启eclipse,我的办法是
在eclipse中的android管理器中也就是 avd Manager中 选择 第一个选项 虚拟设备virtural device从里面找到一个模拟机启动 当启动起来之后 关掉你的eclipse 在重新启动 就好了
这里说命的一点是 一定要注意 虚拟设备一定要先开 然后在重启eclipse 至少我的方法是这样子的
注意一个顺序问题
使得我的问题是解决了,可是又出现了:
ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.android_denglu/.MainActivity }
ActivityManager: Warning: Activity not started, its current task has been brought to the front
很是纠结,继续百度ing....................
百度中的大神说:删了AVD重新建一个,我试一下,希望成功吧。
我晕死,又出现emulator-arm.exe已停止工作的问题。现在虚拟机都不出来一个了。。。。。。。。。。
解决方法:在创建avd的 时候有个hardware 选项 ,点击new ,里面可以看见 GPU emulation 选择yes ,然后我的android界面就出来了,问题真是纠结死人了。。。。。。。。
- Please ensure that adb is correctly located at 'D:\java\sdk\platform-tools\adb.exe' and can be execu
- 解决Please ensure that adb is correctly located at 'D:\java\sdk\platform-tools\adb.exe' and can be exe
- 解决Please ensure that adb is correctly located at 'D:\java\sdk\platform-tools\adb.exe' and can be exe
- 错误:Please ensure that adb is correctly located at 'D:\java\sdk\platform-tools\adb.exe' and can be e
- 经常遇到Please ensure that adb is correctly located at 'D:\java\sdk\platform-tools\adb.exe' and can be
- Please ensure that adb is correctly located at '\sdk\platform-tools\adb.exe' and can be
- 经常遇到Please ensure that adb is correctly located at 'D:\java\sdk\platform-tools\adb.exe' and can be e
- 经常遇到Please ensure that adb is correctly located at 'D:\java\sdk\platform-tools\adb.exe' and can be e
- 经常遇到Please ensure that adb is correctly located at 'D:\java\sdk\platform-tools\adb.exe' and can be e
- 经常遇到Please ensure that adb is correctly located at 'D:\java\sdk\platform-tools\adb.exe' and can be e
- 经常遇到Please ensure that adb is correctly located at 'D:\java\sdk\platform-tools\adb.exe' and can be e
- 解决Please ensure that adb is correctly located at 'E:\eclipse\sdk\platform-tools\adb.exe' and can be
- 解决Please ensure that adb is correctly located at '\sdk\platform-tools\adb.exe' and can be executed错误
- 解决Please ensure that adb is correctly located at '\sdk\platform-tools\adb.exe' and can be executed错误
- 经常遇到Please ensure that adb is correctly located at 'C:\java\sdk\platform-tools\adb.exe' and can be e
- Please ensure that adb is correctly located at 'D:\Android\android-sdk\platform-tools\adb.exe' and
- Please ensure that adb is correctly located at 'D:\android-sdk-windows\platform-tools\adb.exe' and c
- Please ensure that adb is correctly located at 'D:\java\sdk\platform-tools\adb.e
- 配置所有用户对所有栏目有发布权限而没有对该栏目下内容阅读权限的方法
- GCDiscreetNotificationView提示视图
- 用优先级随机概率解决'今天吃神马问题
- myEclipse配置hibernate实例连接SQL server 2008
- 分布式搜索Elasticsearch——创建客户端(四)
- Please ensure that adb is correctly located at 'D:\java\sdk\platform-tools\adb.exe' and can be execu
- 使用Eclipse插件EGit进行Git代码托管和协同开发教程
- PL/SQL每日一题:含有NULL的IF条件
- eclipse集成python
- iOS下的RSA加密方法
- 在低版本的 vc 中使用 vc 10.0 的新特性
- 开源中国iOS客户端学习——(三)再看协议与委托
- collectd plugin
- JAVA设计模式—责任链模式(Chain Of Responsibility)