Could not open settings generic class cache for settings file settings.gradle

Says it can not open it. Picture of a file being there provided.
file called “settings” with a type of .gradle is there. Can not provide a picture since being a new user.

Java version is 8.

The problem is not, that the file is not accessible.
The problem is “Unsupported class file major version 63”.
63 means Java 19.
So you try to use something that was compiled for Java 19+ with something Java -18, and that fails.

Thank you for your reply! java -version in cmd shows 19. Same with properties. Tried with both jdk versions, the problem did not go away. What am I doing wrong, kind sir?

What does ./gradlew --version say?
What is JAVA_HOME envirionment variable set to?

Where should I put the command? My cmd and Visual Studio don’t read this command. Both with and without the slash and dot. JAVA_HOME is set to: C:\Program Files\Java\jdk-19. Thank you!

In your root project directory, where you have the gradlew.bat.
If you call from Bash or similar, for example from “Git Bash”, it is ./gradlew.
If you call from PowerShell, it is .\gradlew.
If you call from Cmd, it is just gradlew.

Btw. your screenshot shows you use Gradle 7.5.
This is not supported to run on Java 19: Compatibility Matrix