源码一直编译不通过

来源:2-2 Spring源码的下载和编译

qq_慕仰7336827

2020-06-05

ERROR: Unable to load class ‘org.springframework.build.compile.CompilerConventionsPlugin’.
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)

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.

In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

写回答

1回答

翔仔

2020-06-05

同学好,我看异常处理的建议是 In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes

好像说的是你的gradle下载超时导致仓库污染,建议重新打开ide并且杀掉所有java进程,

此外,可以参考我的链接设置镜像

https://www.imooc.com/article/300527

然后,参考下面链接的 1 来删除.gradle文件

https://blog.csdn.net/liuwenhao1996/article/details/54092664/

环境的问题需要同学多担待,我们的环境不一样,遇到问题也不同,所以一定要努力跟环境做斗争:)

0
0

剑指Java自研框架,决胜Spring源码

快速入门Spring核心源码+从零开发自研框架

1498 学习 · 495 问题

查看课程