Gradle Could not open settings generic class cache for settings file

FAILURE: Build failed with an exception.

* What went wrong:
Could not open settings generic class cache for settings file '/home/lenovo/Desktop/React Native /project_2/android/settings.gradle' (/home/lenovo/.gradle/caches/8.6/scripts/5sa9oh58krr7nvke7jztsd1z7).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 66

* 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 818ms
error Failed to install the app. Command failed with exit code 1: ./gradlew app:installDebug -PreactNativeDevServerPort=8081 FAILURE: Build failed with an exception. * What went wrong:
Could not open settings generic class cache for settings file '/home/lenovo/Desktop/React Native /project_2/android/settings.gradle' (/home/lenovo/.gradle/caches/8.6/scripts/5sa9oh58krr7nvke7jztsd1z7).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 66 * 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 818ms.
info Run CLI with --verbose flag for more details.

Is there a question hidden somewhere? :slight_smile:

1 Like