怎样解决Please ensure that adb is correctly located at......

昨天下午搭建了Android开发环境,但是天公不作美——执行新建的Android项目总是提演示样例如以下问题:

[2014-10-30 15:41:47 - ] The connection to adb is down, and a severe error has occured.
[2014-10-30 15:41:47 - ] You must restart adb and Eclipse.
[2014-10-30 15:41:47 - ] Please ensure that adb is correctly located at ‘<--此处显示adb.exe的全路径-->‘ and can be executed.

努力了大半天总算是解决这个问题了,现总结一下:

1、关闭eclipse。打开Windows任务管理器。查看进程中是否有adb.exe或adb.exe *32进程;

2、假设Windows任务管理器中有adb.exe或adb.exe *32进程则关闭该进程。又一次启动eclipse就可以;

3、假设Windows任务管理器中没有adb.exe或adb.exe *32进程。则能够进行以下几种尝试:

a、打开计算机DOS窗体,通过adb start-server手动启动。假设出现下图则表示成功启动,这时就能够在Windows任务管理器中找到adb.exe或adb.exe *32进程:

b、假设上面方法无法奏效,那么一定是adb.exe进程的port被其他进程占用了。这时我们能够通过i、ii和iii三个步骤解决这个问题:

i、因为adb.exe默认port为5037。所以能够通过例如以下命令查看port使用情况:

C:\Users\GaoHuanjie>netstat -aon|findstr "5037"
  TCP    0.0.0.0:5037           0.0.0.0:0              LISTENING       2736

ii、通过上面命令能够看出2736port占用了5037port,通过例如以下命令查看哪个进程使用了2736port:

C:\Users\GaoHuanjie>tasklist|findstr "2736"
TFtpServr.exe                 2736 Services                   0     13,616 K

iii、在Windows任务管理器中找到名为TFtpServr.exe的进程,结束该进程,然后启动eclipse(假设adb.exe进程未能启动。手动启动就可以)。

时间: 2024-08-26 11:26:57

怎样解决Please ensure that adb is correctly located at......的相关文章

解决Please ensure that adb is correctly located at &#39;D:\java\sdk\platform-tools\adb.exe&#39; 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 - ] You must restart adb and Eclipse.    [2012-07-18 16:18:26 - ] Please ensure that adb is correctly located at

如何解决Please ensure that adb is correctly located at......

昨天下午搭建了Android开发环境,可是天公不作美--运行新建的Android项目总是提示如下问题: [2014-10-30 15:41:47 - ] The connection to adb is down, and a severe error has occured. [2014-10-30 15:41:47 - ] You must restart adb and Eclipse. [2014-10-30 15:41:47 - ] Please ensure that adb is

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

遇到问题描述: 运行android程序控制台输出 [2015-07-4 20:18:26 - ] The connection to adb is down, and a severe error has occured.    [2015-07-4 20:18:26 - ] You must restart adb and Eclipse.    [2015-07-4 20:18:26 - ] Please ensure that adb is correctly located at 'D:

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 a

经常遇到Please ensure that adb is correctly located at &#39;D:\java\sdk\platform-tools\adb.exe&#39; and can be e

遇到问题描述: 运行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

Ubuntu遇到Please ensure that adb is correctly located at &#39;...adb.exe&#39; and can be executed 问题解决方法

上次我们在SDK更新的到最新的Android L版本之后,我发现我的ADT和android指定的版本不对应,我的ADT是22版本的,android L需要23版本以上的,版本不对应的话就无法加载这个SDK进去,通过上网查一下说是修改Android SDK目录下tolols目录下libs目录中plugin.prop这个文件,该文件打开一看就很容易知道要修改的是plugin.version=23.0.0这个,把它改成22就可以了,我改之后加载还真的是可以了,但是一个麻烦的问题又混淆我了,在运行项目的

Android学习----异常(2):Please ensure that adb is correctly located at &amp;#39; ... &amp;#39;

打开任务管理器,在后台进程中找到 kadb,结束这个进程,重新启动eclipse. Android学习----异常(2):Please ensure that adb is correctly located at ' ... '

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

今天导入个android项目,运行的时候,居然发现了个错误…… 出现:ADB server didn't ACK, failed to start daemonPlease ensure that adb is correctly located at 'D:\android-sdk-windows\platform-tools\adb.exe' and can be executed. 一开始按照网上查到的方法,关闭eclipse.关闭ADK,然后再重启电脑啥啥的,都没有用.查了下进程,adb

Please ensure that adb is correctly located at……问题

遇到问题描述: 运行android程序控制台输出 [2013-10-13 16:45:50 - ] The connection to adb is down, and a severe error has occured.    [2013-10-1316:45:50 - ] You must restart adb and Eclipse.    [2013-10-1316:45:50 - ] Please ensure that adb is correctly located at '<