--
1. 使用下面的地址代替
原地址: distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip
镜像地址: distributionUrl=https\://downloads.gradle-dn.com/distributions/gradle-6.5-all.zips
上面的已经不好用了
https\://mirrors.cloud.tencent.com/gradle/gradle-6.1.1-all.zip
-----
Your build is currently configured to use incompatible Java 21.0.3 and Gradle 6.1.1. Cannot sync the project.
We recommend upgrading to Gradle version 8.9.
The minimum compatible Gradle version is 8.5.
The maximum compatible Gradle JVM version is 13.
============
Received status code 400 from server: Bad Request
-----------------
重点是:即便配置里是阿里云地址,仍无法下载,报 400 错。但复制下载地址在网页访问正常。排查后发现是代理问题。解决方法:进入 gradle 缓存目录(一般是用户目录 /.gradle/gradle.properties),将其中所有代理配置注释掉即可。
可以下载了