Flutter assets will be downloaded from https://mirrors.sjtug.sjtu.edu.cn/. Make sure you trust this source!
Downloading android-arm-profile/darwin-x64 tools...
Downloading android-arm-profile/darwin-x64 tools...
Failed to download https://mirrors.sjtug.sjtu.edu.cn//flutter_infra_release/flutter/a252ec09b74cca0f8d8d3450566bf77c77f81e8d/android-arm-profile/darwin-x64.zip. Ensure you have network connectivity and then try again.
Exception: 404
Flutter Make sure you trust this source
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
1条回答 默认 最新
- ShaneJin-CN 2021-03-09 15:05关注
调试了很久 自己给自己回答吧 也是为了帮助更多的人
本人 Mac
原因是 是设置了mirrors.sjtug.sjtu.edu.cn 镜像,注释掉 ,用官网提供的镜像
具体的设置是:「在你的 .bash_profile中,配置以后记得source .bash_profile一下」
#Flutter 镜像
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
#export PUB_HOSTED_URL=https://dart-pub.mirrors.sjtug.sjtu.edu.cn/
#export FLUTTER_STORAGE_BASE_URL=https://mirrors.sjtug.sjtu.edu.cn/还有一种情况就是我本地安装了多个 flutter lib ,删掉没有用的 ,在Android Stuido 里面重新配置一下你的Flutter SDK 路径, 重启AS 就可以了
解决 1无用 5