error: cannot connect to daemon at tcp:5037

error: cannot connect to daemon at tcp:5037

我想从设备 flutter 中卸载应用程序,我使用了这个命令:

adb uninstall com.example.application

但这给我错误

Only one usage of each socket address (protocol/network address/port) is normally permitted. (10048)

有人能帮帮我吗

我已经尝试了很多建议并且 none 奏效了

您是否尝试过终止或停止该端口上当前 运行 的进程?

ps 辅助 | grep 5037

kill -9 'running process id'

例如:

ps 辅助 | grep 5037

12814 0.0 0.0 34140220 872 s000 S+ 4:06PM 0:00.00 grep 5037

然后: kill -9 12814

你能在这里看到解决方案吗adb cannot connect to daemon at tcp:5037