ImFrozen_
ImFrozen_

Reputation: 41

IntelliJ Gradle "Unable to find Method"

The Error:

Failed to sync Gradle project '-' Error:Unable to find method 'org.gradle.internal.logging.progress.DefaultProgressLoggerFactory.(Lorg/gradle/internal/logging/progress/ProgressListener;Lorg/gradle/internal/time/TimeProvider;)V'.

You can see, a constructor inside a class, which is found in the logging jar (gradle_home/lib/grade-logging-version.jar) is missing. So, I think the Class-Path does not contain this jar file.

Upvotes: 4

Views: 3479

Answers (1)

Roger Lehmann
Roger Lehmann

Reputation: 1047

I had the exact same problem today. The only way I was able to get it to work was to remove my IntelliJ IDEA IDE, get the latest from the website (with JDK) and put it in a new folder (i.e. no overwriting existing files). After that, I deleted the .idea folder from the project and reimported it cleanly into the "new" IntelliJ.

I suspect upgrading IntelliJ from Version <= 2016.x caused the issue, since a new installation / clean extraction from archive caused it to work on the fly.

Upvotes: 4

Related Questions