window平台vscode调试flutter程序时报错Error connecting to the service protocol

背景

window平台vscode调试flutter程序时报错

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

现象

vscode 中点击 F5调试时, 安卓模拟器白屏,无法加载 flutter应用,出现上面的错误

解决方案

安卓模拟器版本太高,降低版本即可,(我用的9.0出现此错误,降低版本到 android8.1就没有此问题了)
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。