ShaneJin-CN 2021-03-09 14:58 采纳率: 0%
浏览 1656

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条回答 默认 最新

  • 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 就可以了

    评论

报告相同问题?

悬赏问题

  • ¥15 如何用stata画出文献中常见的安慰剂检验图
  • ¥15 c语言链表结构体数据插入
  • ¥40 使用MATLAB解答线性代数问题
  • ¥15 COCOS的问题COCOS的问题
  • ¥15 FPGA-SRIO初始化失败
  • ¥15 MapReduce实现倒排索引失败
  • ¥15 ZABBIX6.0L连接数据库报错,如何解决?(操作系统-centos)
  • ¥15 找一位技术过硬的游戏pj程序员
  • ¥15 matlab生成电测深三层曲线模型代码
  • ¥50 随机森林与房贷信用风险模型