只要我打開一個Android Studio項目,我得到一個警告說「搖籃同步失敗」,但此錯誤:搖籃同步失敗在Android Studio中
Gradle sync failed: Cause: ch.qos.logback.classic.LoggerContext cannot be cast to org.gradle.internal.logging.slf4j.OutputEventListenerBackedLoggerContext
我的build.gradle是:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
我試過建議的修復和乾淨的安裝幾次無濟於事。我安裝了JDK 8的OSX 10.10。提前致謝。
你應該在問題中發佈你的build.gradle文件。 – FlyingPumba