Java – Android Studio org.slf4j.spi.LocationAwareLogger.log

Android Studio org.slf4j.spi.LocationAwareLogger.log… here is a solution to the problem.

Android Studio org.slf4j.spi.LocationAwareLogger.log

I get this error when I install Android Studio on my mac (OSX Mavericks) and create a project:

Unable to synchronize Gradle project “Project Name”

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’

When I first ran into this issue, I installed gradle-1.12. Then I installed gradle-2.1 and still the same issue. Then I installed gradle 1.1 and still the same issue.
I’ve been trying to fix this for the past week but to no avail.


See ~/Library/Java/Extensions. I have an alias for slf4j-api.jar there, and other old stuff. Removed it (actually I deleted the entire ~/Library/Java directory 🙂 Now it works fine.

Related Problems and Solutions