Flutter 热更新无效问题

Error connecting to the service protocol: Exception: Attempted to connect to Dart observatory 5 times, and all attempts failed. Giving up. The URL was ws://127.0.0.1:8111/ws

如果运行后输出 Log 是这样,同时使用了代理,那问题就是代理设置造成的,需要将 127.0.0.1 排除出代理

修改环境变量

sudo nano /etc/profile

添加

export no_proxy="localhost,127.0.0.1"

 

    原文作者:twilightdream
    原文地址: https://blog.csdn.net/twilightdream/article/details/81453909
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞