Home > Software engineering >  Unable to run android project. Gradle sync failing becuase of GradleConnectionException
Unable to run android project. Gradle sync failing becuase of GradleConnectionException

Time:08-02

Android studio showing error when try to build project.

Unable to load class 'org.slf4j.LoggerFactory'.
This is an unexpected error. Please file a bug containing the idea.log file.

idea.log file showing this error

2022-07-31 14:32:43,144 [ 452438]   INFO - .project.GradleProjectResolver - Gradle project resolve error 
org.gradle.tooling.GradleConnectionException: Could not create an instance of Tooling API implementation using the specified Gradle distribution 'https://services.gradle.org/distributions/gradle-7.3.3-bin.zip'.
    at org.gradle.tooling.internal.consumer.loader.DefaultToolingImplementationLoader.create(DefaultToolingImplementationLoader.java:101)
    at org.gradle.tooling.internal.consumer.loader.CachingToolingImplementationLoader.create(CachingToolingImplementationLoader.java:45)
    at org.gradle.tooling.internal.consumer.loader.SynchronizedToolingImplementationLoader.create(SynchronizedToolingImplementationLoader.java:44)

CodePudding user response:

Change distributionUrl in gradle-wrapper.properties from

distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip

to

distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip

and sync your project.

  • Related