Flutter 无法热重载
使用 Android Studio 按照官网教程搭建第一项目,运行项目,应用成功启动,但是会报异常:Error connecting to the service protocol: HttpException: Connection closed before full header was received, uri = http://127.0.0.1:51079/gM04ir90Rpc=/ws
多方搜索之后发现下面这个解决方案的点赞数较高
截图来源:https://github.com/flutter/flutter/issues/32696
我一开始的版本是Q,降级到Pie之后重启项目发现不再抛异常了,项目也能正常热重载。