android studio:Adb connection Error:An existing connection was forcibly closed by the remote host / 远程主机强迫关闭了一个现有的连接

原答案:

It seems this issue has no exact solution, because the cause of this issue is not same for everyone. However, if you have faced this issue recently in Android Studio Bumblebee (2021.1.1) after updating from Arctic Fox, then the problem might have happened due to adb mDNS for wireless debugging.

To solve this issue, disable mDNS for wireless debugging from here:

Android Studio > Settings > Build, Execution, Deployment > Debugger > Untick "Enable adb mDNS for wireless debugging"

机翻:

这个问题似乎没有确切的解决方案,因为这个问题的原因对每个人来说都不一样。但是,如果您最近在从Arctic Fox更新后的 Android Studio Bumblebee (2021.1.1) 中遇到了这个问题,那么问题可能是由于 adb mDNS 用于无线调试而发生的。

要解决此问题,请从此处禁用 mDNS 进行无线调试:

Android Studio > 设置 > 构建、执行、部署 > 调试器 > 取消勾选“启用 adb mDNS 进行无线调试”

来源:https://stackoverflow.com/a/70941381/1372973

posted @ 2022-02-28 21:44  oneQuiz  阅读(555)  评论(0)    收藏  举报