昨天Android Studio还好好的,今天再运行就出问题了:

Android Studio "ADB not responding"

开始以为是 sdk 问题,把 sdk 更改为 Android Studio 自带的 sdk, 可问题依旧存在:

Android Studio "ADB not responding"

点击下面的 Android 小图标,打算看 LogCat, 结果看到了这个:

Android Studio "ADB not responding"

后来上网查找解决了,原来是 sdk 端口被占用了!

 

解决方法:

adb 运行占用的端口是 5037, 进入 cmd 窗口,运行 netstat -aon|findstr "5037"  (注意空格)

Android Studio "ADB not responding"

由此可知 5037 端口被 PID(进程标识符) 为 4076 的应用程序占用了!找到并结束它就行了

Android Studio "ADB not responding"

 

PS: 显示 PID 方法

1. 任务管理器 -->  查看 -->  选择列,勾选 PID 就OK了!

Android Studio "ADB not responding"

 

Android Studio "ADB not responding"

 

参考:http://vcsos.com/Article/pageSource/140816/20140816162242.shtml

相关文章:

  • 2022-12-23
  • 2021-11-11
  • 2022-12-23
  • 2022-01-18
  • 2022-12-23
  • 2021-05-05
  • 2021-05-31
  • 2022-01-14
猜你喜欢
  • 2022-12-23
  • 2021-10-23
  • 2021-12-25
  • 2021-07-17
  • 2021-12-27
相关资源
相似解决方案