富在术数不在劳身,利在局势不在力耕
环境配置,最重要的将解压文件夹的bin文件夹加入到环境变量中,其次要在环境变量中设置flutter 资源镜像,添加环境变量PUB_HOSTED_URL=https://opentuna.cn/dart-pub
, FLUTTER_STORAGE_BASE_URL=https://opentuna.cn/flutter
,其次要修改gradle的源,在flutter目录下 %flutter%\packages\flutter_tools\gradle\flutter.gradle
的文件中做如下操作
// 注释或去掉 如下两行(存在多处)。添加后三行
// 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' }
文章分类