flutter配置镜像
时间: 2023-09-08 15:17:28 浏览: 156
Flutter在windows系统配置及运行
要配置Flutter镜像,你可以按照以下步骤进行操作:
1. 在用户环境变量中添加以下内容:
PUB_HOSTED_URL=https://pub.flutter-io.cn
FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.*** 如果你在国内使用Flutter,可以选择一个与官方同步的可信的镜像站点。例如,可以设置PUB_HOSTED_URL和FLUTTER_STORAGE_BASE_URL这两个环境变量为:
PUB_HOSTED_URL=https://pub.flutter-io.cn
FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
这样就可以使用由清华大学TUNA协会提供的镜像站点了。
通过配置镜像,你可以更方便地获取到Flutter的相关资源和包,加快开发过程。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Flutter开发Windows环境配置](https://download.csdn.net/download/weixin_38565818/14016413)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [Flutter配置镜像](https://blog.csdn.net/ddxxii/article/details/90145056)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [【Flutter】Github 时断时续 Flutter 开发如何设置镜像](https://blog.csdn.net/i_lovefish/article/details/115018887)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文