Adb failed to restart! Make sure the plugin is properly configured.

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

解决办法:

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

现在Reset adb应该就行了


猜你喜欢

转载自blog.csdn.net/qq_24800377/article/details/78800292