Issue with Graddle setting up libGDX project

Please help

Generating app in C:\Users\H\Desktop\X Project
Executing 'C:\Users\H\Desktop\X Project/gradlew.bat clean --no-daemon'
To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/7.5.1/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 'C:\Users\H\Desktop\X Project\settings.gradle' (C:\Users\H\.gradle\caches\7.5.1\scripts\13dbo4zft16dyvv6xki9uzovd).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 64

* 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 7s

You try to run a Gradle 7.5.1 build using Java 20.
This is not supported: Compatibility Matrix
Either upgrade your Gradle version to at least 8.3 or downgrade your Java version you use to run Gradle to at most Java 18.