环境: win10
- 安装SDK
a. 下载地址
b. 配置环境(国内源)
PUB_HOSTED_URL=https://pub.flutter-io.cn FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
将 flutter\bin 添加到path
c.修改目录下的flutter.gradle
文件,将源定位到国内
/packages/flutter_tools/gradle/flutter.gradle
image.png
2.flutter doctor
- 在IDEA中添加flutter插件
网友评论