Adb connection Error:远程主机强迫关闭了一个现有的连接。
Unable to open connection to: localhost/127.0.0.1:5037, due to: java.net.ConnectException: Connection refused: connect
1.打开cmd
c:
cd\windows\system32
2. 输入 netstat -ano|findstr 5037 回车
在输出的最后找到占用 5037 的到底谁 :
我的是2420, 然后输入 tasklist|findstr "2420" 回车
输出如下:
可以看见 是因为是电脑端的微信导致了, 退出微信,重开studio, 直接就连上了,
话说微信为什么会占用 adb的这个端口?? 真是日了狗