下载
https://flutter.dev/docs/get-started/install
安装
配置环境变量
PUB_HOSTED_URL ===== https://pub.flutter-io.cn
FLUTTER_STORAGE_BASE_URL ===== https://storage.flutter-io.cn
Path添加flutter的bin目录
把下载的文件解压到你需要的目录,然后进入bin目录打开cmd执行
flutter doctor
Android Studio安装插件
Android Studio新建项目
选择flutter目录
创建完成之后打开build.gradle
maven { url 'https://maven.aliyun.com/repository/google' } maven { url 'https://maven.aliyun.com/repository/jcenter' } maven { url 'http://maven.aliyun.com/nexus/content/groups/public' }