其他分享
首页 > 其他分享> > Android Studio找不到设备,解决adb占用问题的方法

Android Studio找不到设备,解决adb占用问题的方法

作者:互联网

使用as连接真机时,找不到设备,发现

D:\Android\Sdk\platform-tools\adb.exe start-server' failed -- run manually if necessary

这是可能是adb端口占用的问题,解决方法:

1.查找此时正在占用adb默认端口‘5037’ 的进程pid

win+R 打开cmd窗口,输入

netstat -aon|findstr 5037

2.通过查询到的pid找到该任务

tasklist /fi "PID eq 18312"

3.关闭该进程

taskkill /pid 18312 /f

 

问题解决

标签:18312,5037,占用,pid,Studio,adb,Android
来源: https://www.cnblogs.com/Arisf/p/14664951.html