因为项目原因最近一直没有学习flutter了,今天打开以前的flutter项目时发现,flutter Resolving dependencies...很慢。
解决办法:
打开Flutter SDK:flutter\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'}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
}
}
即可解决!
网友评论