方法一:远程maven仓库
```
repositories{
maven{ url'https://maven.aliyun.com/repository/public' }
maven{ url'https://maven.aliyun.com/repository/public' }
maven{ url'https://maven.aliyun.com/repository/google' }
maven{ url'https://maven.aliyun.com/repository/gradle-plugin' }
google()
mavenCentral()
jcenter()
}
```
方法二:本地离线配置
去以下这个网址,Ctrl+F搜索你想要的gradle对应版本的zip。
https://services.gradle.org/distributions/
然后配置类似如下目录:distributionUrl=file:///C:/Users/Administrator/.gradle/wrapper/dists/gradle-7.3-all.zip
#distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-all.zip