AndroidStudio (0.8.9 Mac) New Gradle Project Failed to sync
I am a bit blocked while evaluating Android Studio (0.8.9 on Mac) due to a gradle sync error.
I have already searched for other problems like StackOverflow (e.g. Gradle project update error (AS 0.8.2, Mac) ) but not finding a solution.
Immediately when I create a new Android project using Android Studio I got the following error:
Error: Cannot find method 'org.slf4j.spi.LocationAwareLogger.log (Lorg / slf4j / Marker; Ljava / lang / String; ILjava / lang / String; [Ljava / lang / Object; Ljava / lang / Throwable;) V " Possible reasons for this unexpected error:
In case of corrupt gradle processes, you can also try to close the IDE and then kill all Java processes.
- Gradle Dependency Cache can get corrupted (this sometimes happens after network connection timeout). Reload dependencies and sync project (requires network).
- The state of the gradle build process may be corrupted. Stop gradle daemons and sync project
My build.gradle file looks like this:
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()
}
}
and gradle -wrapper.properties:
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=http\://services.gradle.org/distributions/gradle-1.12-all.zip
Hope you can help me find a solution.
thank
Marco
+3
source to share