Error with gradle -1

I am new to gradle but just ran this command and got this error

[root@Daley-DB grpc-plugin]# ./gradlew assemble
To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/7.2/userguide/gradle_daemon.html#sec:disabling_the_daemon.
Daemon will be stopped at the end of the build

FAILURE: Build failed with an exception.

* What went wrong:
Could not open settings generic class cache for settings file '/tmp/grpc-plugin/settings.gradle' (/root/.gradle/caches/7.2/scripts/1d1nt4m4x8xzhsd25ekd4m1v1).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 67

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

* Get more help at https://help.gradle.org

BUILD FAILED in 21s

You try to use Java 23 to execute Gradle 7.2, this is not supported: Compatibility Matrix

thanks
I have installed java 17 which has sorted the issue

1 Like