Please ensure that adb is correctly located at 'E:\EclipseDociments\eclipse_adt\adt-bundle-windows-x

来源:互联网 发布:个体工商户淘宝开店 编辑:程序博客网 时间:2024/06/08 11:39

今天在打开eclipse的时候,本来想跑一下项目的,谁知道,一运行几秒之后弹出:[2016-10-14 09:41:08 - Test] The connection to adb is down, and a severe error has occured.[2016-10-14 09:41:08 - Test] You must restart adb and Eclipse.[2016-10-14 09:41:08 - Test] Please ensure that adb is correctly located at 'E:\EclipseDociments\eclipse_adt\adt-bundle-windows-x86-20130917\sdk\platform-tools\adb.exe' and can be executed.

以前一碰到过几次这样的问题,现在记录以下解决方案:

  • 红色框打开,选择带有黄色感叹号的‘Reset adb’。然后就自动重启adb了。这时候可以同时重启一下eclipse,在打开就可以了。
  1. 查看端口使用情况:

                       netstat -aon|findstr "5037"

                        TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING       12104


  2.                 发现12104占用5037端口,查看5004的task:

                        tasklist|findstr "12104"

                        adb.exe          12104 Console                    0      3,880K


  3.                     打开windows管理器结束adb.exe该进程,重新启动eclipse,如果adb.exe未能启动,手动启动即可



0 0
原创粉丝点击