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

今天在打开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未能启动,手动启动即可



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值