Could not install Gradle distribution
换了新电脑,新装了AndroidStudio4.2,新建第一个项目时报错:
Could not install Gradle distribution from 'https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip'
解决方案:
(1)点击报错信息中的链接:
https://services.gradle.org/distributions/gradle-6.7.1-bin.zip
下载压缩包到指定路径,解压。
(2)依次点击File->Settings->Build, Execution,Deployment->Build Tools->Gradle,在Gradle projects区域将Use Gradle from改为自己下载的路径,Retry:
(3)成功解决: