mac解决flutter Error connecting to the service protocol: failed to connect to http://127.0.0.1报错
Error connecting to the service protocol: failed to connect to http://127.0.0.1
·
现象:flutter project编译的时候报以下错误导致启动后白屏无显示
解决办法:
在bash_profile中添加:
export NO_PROXY=localhost,127.0.0.1
然后执行:
source ~/.bash_profile
flutter doctor
如果执行flutter doctor 过程中 仍然显示Proxy Configuration 异常,例如:
NO_PROXY does not contain ::1
则可根据提示操作,比如上面的直接在后面加 ::1 即可,即:
export NO_PROXY=localhost,127.0.0.1,::1
然后重新source 、 doctor
更多推荐
已为社区贡献2条内容
所有评论(0)