Article Outline
配置镜像 参考链接
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
或
export FLUTTER_STORAGE_BASE_URL=https://mirrors.sjtug.sjtu.edu.cn
export PUB_HOSTED_URL=https://dart-pub.mirrors.sjtug.sjtu.edu.cn
或
export PUB_HOSTED_URL=https://mirrors.tuna.tsinghua.edu.cn/dart-pub
export FLUTTER_STORAGE_BASE_URL=https://mirrors.tuna.tsinghua.edu.cn/flutter
安装编辑器 下载链接
下载Android SDK
下载Flutter SDK
git clone https://github.com/flutter/flutter.git
设置环境变量
export PATH={pwd}/flutter/bin:$PATH
安装依赖
flutter doctor
替换Android地址
把 android/build.grade
的
google()
jcenter()
替换成
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/public' }