2

我正在尝试在 Android Q 上运行的 Android Emulator Pixel 2 上运行颤振应用程序,但该命令flutter run会引发以下错误:

Error connecting to the service protocol: HttpException: Connection closed before full header was received, uri = http://127.0.0.1:64350/YLIiMby5lk4=/ws

我尝试重新启动 Android Studio 以及模拟器。根据在 Github 问题和 Stackoverflow 上找到的解决方案,我也尝试添加NO_PROXY=localhost,127.0.0.1.bash_profile

4

1 回答 1

0

对于 android 模拟器,请10.0.2.2使用127.0.0.1. 因此,请尝试 http://10.0.2.2/YLIiMby5lk4=/ws
如果您使用的是real device替换为您的Computers Ip address

于 2019-05-20T11:57:43.927 回答