解决: 执行flutter run后出现Failed to download canvaskit

在命令行中输入:export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn

以使用国内镜像,如设置成功会出现:

Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!

 

posted @ 2023-05-05 12:44  johnny_zhao  阅读(1803)  评论(0编辑  收藏  举报