Android Please ensure that adb is correctly located at问题的解决

遇到问题描述:

运行android程序控制台输出

[2013-11-04 16:18:26 - ] The connection to adb is down, and a severe error has occured.

[2013-11-04 16:18:26 - ] You must restart adb and Eclipse.

[2012-11-04 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界面就出来了,问题真是纠结死人了。

查看本栏目更多精彩内容:http://www.bianceng.cnhttp://www.bianceng.cn/OS/extra/

时间: 2024-08-31 07:57:31

Android Please ensure that adb is correctly located at问题的解决的相关文章

遇到问题描述:Android Please ensure that adb is correctly located at问题解决

遇到问题描述: 运行android程序控制台输出     [2013-11-04 16:18:26 - ] The connection to adb is down, and a severe error has occured.     [2013-11-04 16:18:26 - ] You must restart adb and Eclipse.     [2012-11-04 16:18:26 - ] Please ensure that adb is correctly locat

Android Please ensure that adb is correctly located at问题解决

转载于:http://breezylee.iteye.com/blog/2032588 遇到问题描述: 运行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 -

[Android] The connection to adb is down, and a severe error has occured

一.ADB server didn't ACK在配置完Android环境后,运行第一个程序时,遇到了如下错误:        ADB server didn't ACK        * failed to start daemon * 它可能的原因是端口5037被占用,需要查找占用5037(Android默认)端口的PID,在cmd中输入:         netstat -ano | findstr "5037" 输出进程:        TCP    127.0.0.1:5037

Android adb.exe程序启动不起来 具体解决方法

经常遇到 Please ensure that adb is correctly located at 'D:\java\sdk\platform-tools\adb.exe' and can be executed. 遇到问题描述: 运行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 - ]

android开发环境遇到adt无法启动的问题分析及解决方法_Android

开始研究android开发,搭建开发环境的时候就出了问题--果然是好事多磨~ 安装了jdk,配置环境变量,安装了完整版的adt.创建了helloworld程序,启动的时候就报错 "Please ensure that adb is correctly located at 'D:\adt-bundle-windows-x86_64\sdk\platform-tools\adb.exe' and can be executed." 网上查了大量的资料,群里问了很多人,都说是配置环境有问题

android开发环境遇到adt无法启动的问题分析及解决方法

开始研究android开发,搭建开发环境的时候就出了问题--果然是好事多磨~ 安装了jdk,配置环境变量,安装了完整版的adt.创建了helloworld程序,启动的时候就报错 "Please ensure that adb is correctly located at 'D:\adt-bundle-windows-x86_64\sdk\platform-tools\adb.exe' and can be executed." 网上查了大量的资料,群里问了很多人,都说是配置环境有问题

android-新手!运行Android项目失败!adb问题!

问题描述 新手!运行Android项目失败!adb问题! RT,昨天还可以运行出来今天就不行了.错误提示: 在网上找了一些文章,都是说adb的端口被占用,关掉占用程序然后重启Eclipse就可以了,可是我的adb的端口没错啊--如图: 退一万步,即使我关掉它重启Eclipse还是一样的结果--怎么解决?急求!谢谢! 解决方案 如果你的程序没有改变突然就不行了,检查下是不是电脑感染了360等非法流氓软件,再不行重装下系统看看. 解决方案二: 重启后解决了--怎么回事? 解决方案三: 碰到这种情况解

process-如何在Android代码中使用 adb shell命令

问题描述 如何在Android代码中使用 adb shell命令 想使用 "mount -o remount,rw /system"这个命令 使用过 Process process = null; DataOutputStream os = null; process = Runtime.getRuntime().exec("su"); os = new DataOutputStream(process.getOutputStream()); os.writeByt

关于android开发如何利用adb logcat命令打印自己应用的log

问题描述 关于android开发如何利用adb logcat命令打印自己应用的log eclipse的 log 输出经常死掉,断点调试,有时是在两个断点之间死掉,需要log,但是adb log的命令不会用,请高人指点,谢谢. 解决方案 http://blog.csdn.net/hansel/article/details/38088583http://blog.csdn.net/loovejava/article/details/8971953