Flutter开发环境搭建配置

栏目: IOS · Android · 发布时间: 6年前

内容简介:Flutter SDK的获取首先,从由于,谷歌的原因,我们需要镜像地址更改一下(根据官网提示:The Flutter team cannot guarantee long-term availability of this service. ):

Futter开发环境搭建配置

Flutter SDK的获取

首先,从 GitHub官网 下载Flutter SDK。或者,先下载 git ,然后安装git,打开Git Bash,在窗口中输入

git clone -b master https://github.com/flutter/flutter.git

由于,谷歌的原因,我们需要镜像地址更改一下(根据官网提示:The Flutter team cannot guarantee long-term availability of this service. ):

export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn

或者,使用上海交通大学的 Linux User Group :

export PUB_HOSTED_URL= https://dart-pub.mirrors.sjtug.sjtu.edu.cn/
export FLUTTER_STORAGE_BASE_URL= https://mirrors.sjtug.sjtu.edu.cn/

然后接着输入:

export PATH="$PWD/flutter/bin:$PATH"

注意:$PWD为你安装Flutter的路径

安装完后,在环境变量中,静Flutter的安装地址配置到Path变量中。

最后,运行 flutter doctor


以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

The Apache Modules Book

The Apache Modules Book

Nick Kew / Prentice Hall PTR / 2007-02-05 / USD 54.99

"Do you learn best by example and experimentation? This book is ideal. Have your favorite editor and compiler ready-you'll encounter example code you'll want to try right away. You've picked the right......一起来看看 《The Apache Modules Book》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具