flutter sdk
如果powershell的版本低于5,并且路径需要设置在path中的环境变量中(如果未设置环境变量,那么cmd窗口闪退)
https://blog.csdn.net/weixin_40420578/article/details/103769002
https://blog.csdn.net/weixin_40420578/article/details/103762788
安装文件,使用git下载带本地(不要下载到Admin权限文件中),
git clone https://github.com/flutter/flutter.git
第一次启动项目时,需要下载gradle,
配置阿里云下载gradle:
打开项目的build.grale文件----------------------->修改如下配置
buildscript {
ext.kotlin_version = '1.3.50'
repositories {
//----------------->
//google()
//jcenter()
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' }
}
...
}
allprojects {
repositories {
//---------------------->
//google()
//jcenter()
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' }
}
}
打开flutter sdk的packages/flutter_tools/gradle/flutter.gradle文件,修改如下--------------》
buildscript {
repositories {
//-----------------------》
//google()
//jcenter()
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' }
}
.....
}