Could not install Gradle distribution from ‘https://services.gradle.org/distributions/gradle-XXXX...

解决方案:
打开Android Studio,找到 gradle-wrapper.properties文件 ,distributionUrl的域名由services.gradle.org该为downloads.gradle-dn.com,保存后,重启Android Studio即可。具体步骤如下:

  1. 打开gradle官网,https://gradle.org/releases/

Could not install Gradle distribution from ‘https://services.gradle.org/distributions/gradle-XXXX...

  1. 找到对应的版本点击下载
    Could not install Gradle distribution from ‘https://services.gradle.org/distributions/gradle-XXXX...
  2. 找到对应的下载路径
https://downloads.gradle-dn.com/distributions/gradle-7.0.2-bin.zip
  1. 打开Android Studio,找到 gradle-wrapper.properties文件
    Could not install Gradle distribution from ‘https://services.gradle.org/distributions/gradle-XXXX...
    替换后的路径
    Could not install Gradle distribution from ‘https://services.gradle.org/distributions/gradle-XXXX...
  2. 重启Android Studio。
    注意:https后面的 \ 一定不要丢了。
上一篇:隐私与机器学习,二者可以兼得吗?


下一篇:简单的网络爬虫的python实现