eclipse 读取不到手机 Adb failed to restart Make sure the plugin is properly configured

今天遇到一个这样的问题,我使用的eclipse开发android,

手机连接电脑成功,但是,eclipse读取不到手机,在Devices-》Reset adb 之后显示 Adb failed to restart 

Make sure the plugin is properly configured

百度之后发现是

出现这个错误的原因是因为电脑上的各种手机助手抢占了手机链接,用自己的adb进程启动,导致我们开发用的sdk abd无法启动。

解决办法:

1. 查看占用端口5037的PID值
netstat -a -n -o |findstr "5037"
输出结果:
  TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING       5096
  TCP    127.0.0.1:5037         127.0.0.1:51577        ESTABLISHED     5096
  TCP    127.0.0.1:51577        127.0.0.1:5037         ESTABLISHED     4324


2. 从上面得知PID = 5096占用了5037端口,现在通过PID查看进程名,看到底哪个进程占用此端口
tasklist /v | findstr 5096
输出结果:
tadb.exe  5096 Console  1  4,932 K Unknown  ......  0:00:02 暂缺
3. 杀死占用5037端口的进程 tadb.exe
taskkill /f -pid 5096
taskkill /im tadb.exe
输出结果
成功: 已终止 PID 为 5096 的进程。

现在Reset adb应该就行了

你可能感兴趣的:(android)