美文网首页
Flutter - Xcode运行Flutter项目报Faile

Flutter - Xcode运行Flutter项目报Faile

作者: 俺不是大佬儿 | 来源:发表于2024-04-26 10:44 被阅读0次

第一次新建的Flutter项目在使用Xcode运行时报Failed to download https://storage.googleapis.com/xxxxx. Ensure you have network connectivity and then try again的错误

报错示例

解决方法

1.打开终端运行下面的命令

export FLUTTER_ STORAGE_ BASE_ URL=https://storage.flutter-io.cn

2.回车后再执行一次 flutter run 命令 重新启动项目就可以了

flutter run

终端运行示例:

终端运行

相关文章

网友评论

      本文标题:Flutter - Xcode运行Flutter项目报Faile

      本文链接:https://www.haomeiwen.com/subject/mmloxjtx.html