美文网首页
android studio:报错Could not insta

android studio:报错Could not insta

作者: 浪人残风 | 来源:发表于2025-08-27 15:05 被阅读0次

1.报错信息

Could not install Gradle distribution from 'https://services.gradle.org/distributions/gradle-7.2-bin.zip'. Reason: java.net.SocketTimeoutException: Connect timed out

2.问题原因:
gradle在国内下载太慢,所以会连接超时,
此处可以使用国内镜像
官网地址:https://services.gradle.org/distributions/
腾讯云镜像 Gradle下载地址:https://mirrors.cloud.tencent.com/gradle/
阿里云镜像 Gradle下载地址:https://mirrors.aliyun.com/macports/distfiles/gradle/

3.解决方法:
找到gradle-wrapper.properties,如图

image.png

编辑gradle-wrapper.properties,
修改distributionUrl为国内镜像站的地址,(注意使版本保持一致),
然后点击 Try Again

相关文章

网友评论

      本文标题:android studio:报错Could not insta

      本文链接:https://www.haomeiwen.com/subject/fmqsajtx.html