* What went wrong: ```Could not open init generic ...
# community-support
s
* What went wrong:
Copy code
Could not open init generic class cache for initialization script '/private/var/folders/5g/r1hcjb891s328q0bw_202rtr0000gn/T/ijMapper1.gradle' (/../.../.gradle/caches/7.5.1/scripts/gvx9u4f34f83wfndigndyc03).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 65
how do i solve this error, and what caused it? i got this in my android studio of an react native project.
v
You are running a Gradle 7.5.1 build using Java 21, this is not supported. https://docs.gradle.org/current/userguide/compatibility.html Either downgrade Java or upgrade Gradle.