赞
踩
Could not install Gradle distribution from ‘https://services.gradle.org/distributions/gradle-8.8-bin.zip’.
Reason: javax.net.ssl.SSLException: Unsupported or unrecognized SSL message
Could not install Gradle distribution from ‘https://services.gradle.org/distributions/gradle-7.2-bin.zip’.
Could not install Gradle distribution from ‘https://services.gradle.org/distributions/gradle-8.0-bin.zip’.
Reason: java.net.SocketTimeoutException: Connect timed out
Could not install Gradle distribution from ‘https://services.gradle.org/distributions/gradle-5.2-bin.zip’.
Reason: javax.net.ssl.SSLException: Unsupported or unrecognized SSL message
Could not install Gradle distribution from ‘https://services.gradle.org/distributions/gradle-8.4-bin.zip’.
Reason: java.io.EOFException: SSL peer shut down incorrectly
Could not install Gradle distribution from ‘https://services.gradle.org/distributions/gradle-8.0-bin.zip’.
Reason: javax.net.ssl.SSLException: Unsupported or unrecognized SSL message
Cannot use connection to Gradle distribution ‘https://services.gradle.org/distributions/gradle-8.8-bin.zip’ as it has been stopped.
1、因为是第一次运行项目,所以需要下载gradle,外网下载速度太慢导致失败。我们需要先找到自己的gradle目录,默认是在C:\Users\user.gradle\wrapper\dists,这里的user是你自己的用户名。
这次我以gradle8.8演示
点开刚刚不能下载的文件夹,gradle-8.8-bin,里面有一个乱码文件夹,把zip拷贝到这个目录,然后选择解压到当前文件夹
gradle的下载链接(持续更新,缺了或者链接失效请留言):https://pan.quark.cn/s/e0ebef3f302b
之后就可以再次同步
如果还是有问题检查下是否有这个.ok文件,没有就手动改一个,以及可以把.part删掉(删不删都行,看能不能跑)。
PS : 你在网上找到的都是收费的,我的是免费的,这不点个赞支持下良心博主嘛。
国内镜像站点提供的解决方案
为了解决Gradle下载过慢的问题,我们可以利用国内优秀的镜像站点来加速下载。以下是一些国内镜像站点提供的Gradle下载地址:
官网地址:https://services.gradle.org/distributions/
腾讯云镜像 Gradle下载地址:https://mirrors.cloud.tencent.com/gradle/
阿里云镜像 Gradle下载地址:https://mirrors.aliyun.com/macports/distfiles/gradle/
阿里云镜像 Gradle下载地址:https://mirrors.aliyun.com/gradle/
通过使用这些国内镜像站点,我们可以更快地获取Gradle的安装包,避免官方下载地址带来的下载速度问题,从而提高我们的开发效率。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。