I am trying to upgrade project from java 17 to java 21. Gradle version is 8.4. I have done the same on another project fra 17 to 21 and gradle version was also 8.4. But in this project I got this error:
Copy code
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':compileKotlin'.
> Unknown Kotlin JVM target: 21