android studio运行时提示ADB出错,无法运行

有时运行Android studio 会出现以下提示

android studio ADB not responding. If you'd like to retry, then please manually kill "adb.exe" and click "restart"。


原因:ADB的运行端口被其它应用程序占用。


解决方法:打开cmd —— netstat -aon|findstr "5037"(adb默认端口为5037)


从上图可知,5037端口被PID为4876的进程占据


所以打开任务管理器,找到PID并结束为4876的进程即可。

(如进程中没PID选项,可点击查看——选择列——找到PID并打勾)

android studio运行时提示ADB出错,无法运行_第1张图片

你可能感兴趣的:(android studio运行时提示ADB出错,无法运行)