修改build.gradle,加入阿里云的源:
repositories {
mavenCentral()
maven { url = 'https://repo.spring.io/snapshot' }
}
改为:
repositories {
mavenCentral()
maven { url='https://maven.aliyun.com/repository/public' }
maven { url = 'https://repo.spring.io/snapshot' }
}
完成!