安装编辑器,安装 Flutter 插件
https://developer.android.google.cn/studio
安装Git
安装Flutter
1. 克隆项目 git clone https://github.com/flutter/flutter.git
2. 设置环境变量 PATH=/flutter/bin
3. 检查环境,下载依赖 flutter doctor
安装安卓SDK
ANDROID_HOME=D:\adt-bundle\sdk
PATH=%ANDROID_HOME%\platform-tools;%ANDROID_HOME%\tools
更新时设置 203.208.41.32 dl.google.com
安装FlutterSDK
PUB_HOSTED_URL=https://pub.flutter-io.cn 或者 PUB_HOSTED_URL=https://mirrors.tuna.tsinghua.edu.cn/dart-pub/
FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn 或者 FLUTTER_STORAGE_BASE_URL=https://mirrors.tuna.tsinghua.edu.cn/flutter
PATH=D:\tools\flutter\bin
设置国内源
[项目名]/android/build.gradle
google()
jcenter()
改为
repositories {
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/public' }
}