赞
踩
1.gradle-wrapper.properties
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip
增加下载地址,然后同步。(如果下载不下来,可以提前下载,然后放到gradle相应的目录里)。
2.增加阿里云
1@ settings.gradle
- dependencyResolutionManagement {
- repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
- repositories {
- maven {
- allowInsecureProtocol = true
- url 'https://maven.aliyun.com/repository/public/' }
- maven {
- allowInsecureProtocol = true
- url 'https://maven.aliyun.com/repository/google/' }
- maven {
- allowInsecureProtocol = true
- url 'https://maven.aliyun.com/repository/central/' }
- maven {
- allowInsecureProtocol = true
- url 'https://maven.aliyun.com/repository/gradle-plugin/'}
- maven {
- allowInsecureProtocol
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。