简体   繁体   中英

Could not initialize class org.codehaus.groovy.runtime.InvokeHelper

Spring Boot Project

I'm using gradle 5.2.1 I can't change the version because I'm working on someone else's code. When I build the project in IntelliJ I get the following error:

* What went wrong:
Could not initialize class org.codehaus.groovy.runtime.InvokeHelper

I'm using IntelliJ terminal in my code folder with command./gradlew clean build install.

when I check./gradle -version it shows JVM: 16.0.2

I feel the problem is with my jdk version.

As per compatibility matrix , only gradle versions of 7 are supporting java 16. May be you can use older version of jdk which is supporting your current gradle.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM