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

遇到问题描述:android

运行android程序控制台输出windows

    [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 '<--此处显示adb.exe的全路径-->' and can be executed.eclipse

 

  问题分析1spa

关闭eclipse,打开windows任务管理器,查看进程中是否有adb.exe或adb.exe *32。rest

  解决方案1orm

若是有则关闭该进程,从新启动eclipse便可;server

  问题分析2:进程

windows任务管理器中就找不到adb.exe或adb.exe *32的进程,能够尝试手动启动adb.exe ;若是手动启动后还找不到adb.exe进程,则    只有一种可能就是adb.exe进程的端口被占用,致使adb.exe未能正常启动所致(adb默认端口为5037)。ip

  解决方案2:android-sdk

                   一、查看端口使用状况:

                   netstat -aon|findstr "5037"

                    TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING       5004

                    二、发现5004占用5037端口,查看5004的task:

                    tasklist|findstr "5004"

                    wandoujia_daemon.exe          5004 Console                    1      4,276 K

                    打开windows管理器结束wandoujia_daemon.exe该进程,启动eclipse,若是adb.exe未能启动,手动启动便可;

对了我这边每次打开Eclpise的时候,模拟器都会报这个错

Please ensure that adb is correctly located at 'C:\android-sdk-windows\platform-tools\adb.exe' and can be executed. ",每次解决的方法:关掉模拟器和Eclipse,找到上面的那个路径双击点开abd.exe,而后在打开Eclipse,而后打开模拟器就行了。

还有总是又出现这种情况,重启Eclipse,关闭全部adb.exe都很差用,今天又找到一种办法

解决方案3:

1.先把eclipse关闭.
2.在管理器转到你的android SDK 的platform-tools下, 如图:

3.键入adb kill-server ,若是adb关闭了会提示 server not running *

4.再输入 adb start-server  若是不成功会提示 daemon not running. starting it now on port  ***的

   而若是成功的话不提示任何语句的.这时再从新打开eclipse就能够正常运行模拟器的了.

相关文章
相关标签/搜索