Android ADB挂在列表设备和其他命令上 [英] Android adb hangs in list devices and other commands
问题描述
当我尝试从终端运行adb命令时,尤其是 adb设备
, adb kill-server
和 adb启动服务器
挂起,我需要键入 CTRL + C
退出该过程。无法将APK部署到物理或虚拟设备。某些东西阻塞了adb进程/端口。我已卸载了防病毒软件并禁用了防火墙。
When I try to run adb commands from terminal, especially adb devices
, adb kill-server
and adb start-server
it hangs and I need to type CTRL+C
to exit proccess. Its not possible to deploy APK to physical or virtual devices. Something is block adb proccess/port. I have anti-virus uninstalled and firewall disabled.
在下面的示例中,我键入adb设备,终端显示连接的设备列表和
In the example below, I type adb devices and terminal show me List of devices attached and hangs in there.
推荐答案
adb绑定到TCP端口5037,如果该端口正在由其他进程使用,则您可能会看到任何adb命令都会挂起而不会做任何事情。
adb binds to TCP port 5037, if this port is in use by different process you might see that any adb commands would just hang and wont do anything.
- 使用 netstat -aon | more命令找出端口5037上的哪个进程
- 杀死5037上的进程,您的adb命令应开始工作
这篇关于Android ADB挂在列表设备和其他命令上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!