【已解决】Android Studio下,gradle project sync failed 错误

时间:2022-04-14 23:28:21

原文:【已解决】Android Studio下,gradle project sync failed 错误

Android studio下突然报错

gradle project sync failed.Basic functionality(e.g.editing,debugging) will not work properly.

解决方案:进入项目目录下,找到 gradle\wrapper\gradle-wrapper.properties 文件,记事本打开,内容如下:

`#Sun Sep 04 23:25:42 CST 2016

distributionBase=GRADLE_USER_HOME

distributionPath=wrapper/dists

zipStoreBase=GRADLE_USER_HOME

zipStorePath=wrapper/dists

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

最后一句,https://services.gradle.org/distributions/gradle-2.14.1-all.zip

studio会下载上面的Gradle,不知道什么原因下载不下来,我们可以手动下载这个版本的Gradle,无需解压直接拷贝到

C:\Users\Administrator\.gradle\wrapper\dists\gradle-2.10-all\a4w5fzrkeut1ox71xslb49gst

下即可,重启studio,问题解决

  • ( ゜- ゜)つロ 乾杯~