想法不支持Gradle 5.2和4.4.2错误?

时间:2019-03-21 21:57:57

标签: gradle intellij-idea

所以我在this帖子中遇到了错误。我尝试升级gradle并遇到另一个错误,原因是使用了不受支持的gradle版本,所以我回到了4.4.2版本。

现在,我知道这是另一个问题的重复,但是问题仍然存在,并且对于较新版本的gradle和idea尚未解决。另外,我不想使用包装器

我收到的错误:

Unable to load class 'org.slf4j.LoggerFactory'.
Possible causes for this unexpected error include:<ul><li>Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)</li><li>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)</li><li>Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.</li></ul>In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

版本版本:4.4.2
IntelliJ IDEA版本:2018.3.5

您可以找到一个测试项目here来重现该问题。请记住以上版本。

1 个答案:

答案 0 :(得分:0)

使用SDKMAN!的官方gradle安装方法,问题就解决了。 linux gradle软件包必须是狡猾的,因此IDEA抱怨。