Skip to content

在运行 Flutter 的时候,可能会遇到一个错误:

sh
: http://127.0.0.1:64038/GNZ_Y00GgYg=/ Error connecting to the service protocol: failed to connect to http://127.0.0.1:64038/GNZ_Y00GgYg=/ HttpException: Connection closed before full header was received, uri = http://127.0.0.1:64038/GNZ_Y00GgYg=/ws

具体原因不知 🤷‍♀️。

这边就是建议,停止运行,然后关闭模拟器,再然后,清空模拟器的所有数据。

点击【Wipe User Data】,一定得清空数据。