Paolo Valletta
Paolo Valletta

Reputation: 29

Sync failed with Gradle in Android Studio

I' m writing my first Android app. I' ve installed successfully Android Studio. I' ve create a nw project, SDK 4.2, empty activity. I' m trying to make/build/run the app before starting to edit it, but i got this error:

Error:Cause: org.slf4j.helpers.NOPLoggerFactory cannot be cast to ch.qos.logback.classic.LoggerContext Possible causes for this unexpected error include:

  • 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 (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem. Stop Gradle build processes (requires restart)
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

It appears on my win7 PC x64, with 1.8 jdk. I' ve tried on a VM with winXP and it worked at first launch. What can I do?

Upvotes: 2

Views: 1247

Answers (1)

pgp
pgp

Reputation: 89

I was also facing same problem.

I followed this google group link

Then I come to know that I have some other version of slf4j.jar file. I just removed it from /jdk/jre/ext/ folder and it worked for me.

I think this will be useful

Upvotes: 1

Related Questions