当前位置: 代码迷 >> 综合 >> Gradle sync failed: Another 'refresh project' task is currently running for,手动下载gradle
  详细解决方案

Gradle sync failed: Another 'refresh project' task is currently running for,手动下载gradle

热度:13   发布时间:2023-10-18 18:34:51.0

一.修改gradle-wrapper.properties

修改gradle-wrapper.properties 中的 distributionUrl,改成我们想要的版本,只改后面的版本就可以了,前面的部分不要改。具体版本看下面链接:

Gradle下载地址:

二.下载之后,打开C:\Users\Administrator目录

Gradle sync failed: Another 'refresh project' task is currently running for,手动下载gradle
找到.gradle目录 打开到.gradle\wrapper\dists\gradle-4.6-all\bcst21l2brirad8k2ben1letg

将我们之前在Gradle下载地址:独立下载的gradle-4.6-all.zip复制到C:\Users\Administrator.gradle\wrapper\dists\gradle-4.6-all\bcst21l2brirad8k2ben1letg

就万事大吉了,重启打开Android studio的项目就可以编译成功了,不需要studio自动下载gradle啦Gradle sync failed: Another 'refresh project' task is currently running for,手动下载gradle

  相关解决方案