ERROR: Could not install Gradle distribution from 'https://services.gradle.org/distributions/grad...

Android Studio创建项目后,出现错误:ERROR: Could not install Gradle distribution from 'https://services.gradle.org/distributions/gradle-5.4.1-all.zip'.

解决:

1. 关闭Android Studio,进入Windows用户根目录,找到 .gradle\wrapper\dists\gradle-5.4.1-all\3221gyojl5jsh0helicew7rwx 目录,并将其清空

2. 从 https://services.gradle.org/distributions/gradle-5.4.1-all.zip 地址下载文件后,并移动文件到 gradle-5.4.1-all\3221gyojl5jsh0helicew7rwx\ 目录

3. 重启Android Studio,点击按钮Sync Project with Gradle Files,恢复正常

你可能感兴趣的:(ERROR: Could not install Gradle distribution from 'https://services.gradle.org/distributions/grad...)