【Android】Could not install Gradle distribution from(最简单) - gradle

【Android】Could not install Gradle distribution from(最简单) - gradle
转载:https://blog.csdn.net/weixin_42473228/article/details/118542634

Could not install Gradle distribution from - gradle
问题

有时我们接手一个项目时,总是会因为墙的原因,下载不了对应项目的gradle, 很难受
网上的方法都十分的不靠谱, 而且复制粘贴别人的博客, 不靠谱plus:

有下载解压缩到dist的(pass,没搞定)
有修改本地到gradle路径,再重启的(pass,没搞定,这个AS也太老了吧)

凡此种种…
介绍一个最简单的方法

解决方案

打开gradle-wrapper.properties

修改如下:
原路径:

distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip

新路径:

distributionUrl=https\://downloads.gradle-dn.com/distributions/gradle-2.10-all.zip

嗖的一下, 很快啊!

上一篇:react ts could not find a declaration file for module


下一篇:org.springframework.beans.FatalBeanException: Could not copy property 'commentCounts' from