由於Gradle同步錯誤,我在Android Studio(0.8.9在Mac)上評估期間被阻止。AndroidStudio(0.8.9 Mac)新項目Gradle無法同步
我已經在StackOverflow(如Gradle project refresh failed (AS 0.8.2, Mac))上搜索過類似的其他問題,但沒有找到解決方案。
馬上當我創建使用Android Studio中的一個新的Android項目,我得到了以下錯誤:
Error:Unable to find method 'org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V'. Possible causes for this unexpected error include:
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
- Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) Re-download dependencies and sync project (requires network)
- The state of a Gradle build process may be corrupt. Stop Gradle daemons and sync project
我的build.gradle文件如下:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.12.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
和gradle這個-包裝。屬性是:
我希望你能幫我找到解決辦法。
感謝
馬爾科
我建議加入gradle這個標籤,而不是同步 – mjn 2014-10-07 12:30:37
看看這個答案解決您的問題: http://stackoverflow.com/questions/19874743/gradle-project-refresh-failed-after-android-studio-update – forcewill 2014-10-07 12:32:04
嗨,感謝您的快速回復。不幸的是,建議鏈接中的解決方案對我無效。 (由於我的StackOverflow排名,我不能添加「grandle」標籤) – marcopk 2014-10-07 12:57:06