在Visual Studio代码上运行模拟器时出错

时间:2019-06-25 15:15:04

标签: flutter dart

我已经成功安装了Visual Studio代码并成功安装了模拟器,但是当我想运行我的项目时,出现此错误:

Launching lib\main.dart on Android SDK built for x86 in debug mode...
Built build\app\outputs\apk\debug\app-debug.apk.
Error connecting to the service protocol: HttpException: Connection closed before full header was received, uri = http://127.0.0.1:50407/d2ExRenppQ0=/ws
Exited (sigterm)

img1 | img2

2 个答案:

答案 0 :(得分:0)

可以是此处指示的API版本,或者如果您位于代理后面-https://github.com/flutter/flutter/issues/19056

答案 1 :(得分:0)

当前在使用Android Q的Flutter上运行时出现问题。尝试将仿真器与android 28(Pie)而不是android 29(Q)一起使用。

其他可能有用的解决方法可以在这里找到:https://github.com/flutter/flutter/issues/32651

相关问题