新安装flutter后运行 flutter doctor
,报错如下:文章来源:https://www.toymoban.com/news/detail-821996.html
% flutter doctor
Downloading Material fonts... 111ms
Downloading Material fonts... 100ms
Failed to download
https://storage.googleapis.com/flutter_infra_release/flutter/fonts/3012db47f3130
e62f7cc0beabff968a33cbec8d8/fonts.zip. Ensure you have network connectivity and
then try again.
SocketException: Connection reset by peer (OS Error: Connection reset by peer,
errno = 54), address = storage.googleapis.com, port = 57100
解决方案:
Mac系统下执行:export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
即可。文章来源地址https://www.toymoban.com/news/detail-821996.html
到了这里,关于flutter报错Failed to download https://storage.googleapis.com/xxx. Ensure you have network conne的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!