Gradle sync failed: /Applications/Android Studio.app/Contents/gradle/gradle-2.14.1/lib/plugins/gradl

Posted 梦书之家(移动开发)

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Gradle sync failed: /Applications/Android Studio.app/Contents/gradle/gradle-2.14.1/lib/plugins/gradl相关的知识,希望对你有一定的参考价值。

上面出现的错误是,我从android Studio 2.2 升级到2.3后,出现的问题,

找到方法: 

http://stackoverflow.com/questions/30526613/android-studio-gradle-sync-error-on-gradle-diagnostics-x-x-x-jar

看来每个Android Studio的版本都要一个最低版本的Gradle,

 

    • Android Studio 2.2 distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
    • Android Studio 2.1 distributionUrl=https\://services.gradle.org/distributions/gradle-2.12-all.zip
    • Android Studio 2.0 distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip
    • Android Studio 1.5 distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-all.zip
    • Android Studio 1.3 distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip

Android Studio 2.3 对应的Gradle就是 3.2版本了

 

以上是关于Gradle sync failed: /Applications/Android Studio.app/Contents/gradle/gradle-2.14.1/lib/plugins/gradl的主要内容,如果未能解决你的问题,请参考以下文章

Gradle sync failed: Gradle sync failed: Timeout waiting to lock cp_init remapped class cache for a2h

Gradle Sync Failed:Setup Project Failed:Null

android studio 更新 Gradle错误解决方法(Gradle sync failed)

Gradle工程错误:Gradle sync failed: Java home is different

Gradle sync failed: Connection timed out: connect

Gradle sync failed: Gradle version 2.2 is required. Current version is 2.10.