* What went wrong:
Could not open settings generic class cache for settings file 'F:\project567\android\settings.gradle' (C:\Users\Administrat
or\.gradle\caches\7.0.2\scripts\d3lhd1993j05j0lwav8dm03yn).
> 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 --s
can to get full insights.
You try to run a Gradle 7.0.2 build with Java 20, that is not supported, you need to use a compatible Java version: Compatibility Matrix
1 Like
For those who are novice like me, Java 20 was indicated by “major version 64” in the error output.
According to this chart, major version 64 is Java 20.
Then, according to this chart, Java 20 needs Gradle 8.3 (instead of the 7.0.2) that OP is using.
1 Like