请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

执行gradlew.bat失败所报的异常信息

* Where:
Build file 'C:\Users\rongsimin\git-clone-project\springframework5.2.0.RELEASE\build.gradle' line: 320

* What went wrong:
A problem occurred evaluating root project 'spring'.
> Could not find implementation class 'org.springframework.build.compile.CompilerConventionsPlugin' for plugin 'org.springframework.build.compile' specified in jar:file:/C:/Users/rongsimin/.gradle/caches/jars-3/fb2505f267953cec159bdf402eb4fcc5/buildSrc.jar!/META-INF/gradle-plugins/org.springframework.build.compile.properties.

* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Exception is:
org.gradle.api.GradleScriptException: A problem occurred evaluating root project 'spring'.
Caused by: org.gradle.api.plugins.InvalidPluginException: Could not find implementation class 'org.springframework.build.compile.CompilerConventionsPlugin' for plugin 'org.springframework.build.compile' specified in jar:file:/C:/Users/rongsimin/.gradle/caches/jars-3/fb2505f267953cec159bdf402eb4fcc5/buildSrc.jar!/META-INF/gradle-plugins/org.springframework.build.compile.properties.
        at org.gradle.api.internal.plugins.DefaultPluginRegistry$1.load(DefaultPluginRegistry.java:73)
Caused by: java.lang.ClassNotFoundException: org.springframework.build.compile.CompilerConventionsPlugin
        at org.gradle.api.internal.plugins.DefaultPluginRegistry$1.load(DefaultPluginRegistry.java:71)
        ... 167 more

我找到这个buildSrc.jar,里面确实没有CompilerConventionsPlugin类,知道是这个原因,但是不知道要怎么解决,老师帮忙看看,从git下载源码实在是太慢了。win10,idea 2019.3.4,jdk8

正在回答 回答被采纳积分+3

2回答

提问者 慕哥6062902 2020-06-19 01:21:13

已解决

1 回复 有任何疑惑可以回复我~
  • 怎么解决的。。。我也遇到了
    回复 有任何疑惑可以回复我~ 2020-06-20 00:46:36
  • 提问者 慕哥6062902 回复 帅炸一片天 #2
    最简单的办法,1、把老师的代码拉下来;2、把github的源码也拉下来,我直接拉取的5.2.x这个分支(你如果拉取那个Tag v5.2.0也没问题),3、把老师代码里面的修改的配置文件,直接粘贴到github源码这个目录下,就可以在github源码这个里面进行编译了
    回复 有任何疑惑可以回复我~ 2020-06-20 09:09:41
  • 提问者 慕哥6062902 回复 帅炸一片天 #3
    当然,把github源码里面的buildSrc,拷贝到老师的项目代码里面,那老师的代码就也能正常编译了,说白了就是老师的buildSrc目录下面少了些类,而github的是全的
    回复 有任何疑惑可以回复我~ 2020-06-20 09:17:21
慕哥123456 2021-05-26 08:03:40

我是在windows下编译的,发现把gradle.properties的jvmargs修改小一点可以解决问题。

version=5.2.0.RELEASE
org.gradle.jvmargs=-Xmx2048m
org.gradle.caching=false
org.gradle.parallel=true

改为

version=5.2.0.RELEASE
org.gradle.jvmargs=-Xmx512m
org.gradle.caching=false
org.gradle.parallel=true


0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号