u011250032
ShaneJin-CN
采纳率0%
2021-03-09 14:58

Flutter Make sure you trust this source

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

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

1条回答

  • u011250032 ShaneJin-CN 1月前

    调试了很久 自己给自己回答吧 也是为了帮助更多的人

    本人 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 评论 复制链接分享

为你推荐