我正在尝试在运行Android Q的Pixel 2模拟器上运行Flutter应用程序,但是命令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 Issues和Stackoverflow上找到的解决方案,我还尝试将NO_PROXY=localhost,127.0.0.1
添加到.bash_profile
中。
翻译结果:
我尝试过重新启动Android Studio和模拟器。根据在Github问题和Stackoverflow上找到的解决方案,我还尝试将NO_PROXY=localhost,127.0.0.1
添加到.bash_profile
文件中。
.bash_profile
中将其更改为NO_PROXY=localhost,10.0.2.2
,但没有起作用。 - undefined