-3

C:\Users\Asus\Desktop\first-app\newapp>npx react-native run-android info Starting JS server...

info Tip: Make sure that you have set up your development environment correctly, by running react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor

FAILURE: Build failed with an exception.

  • What went wrong: Could not open settings generic class cache for settings file 'C:\Users\Asus\Desktop\first-app\newapp\android\settings.gradle' (C:\Users\Asus.gradle\caches\8.0.1\scripts\4qjt201nk16tj0gmashrqogdn).

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.

BUILD FAILED in 10s error Failed to install the app. Command failed with exit code 1: gradlew.bat tasks FAILURE: Build failed with an exception. * What went wrong: Could not open settings generic class cache for settings file 'C:\Users\Asus\Desktop\first-app\newapp\android\settings.gradle' (C:\Users\Asus.gradle\caches\8.0.1\scripts\4qjt201nk16tj0gmashrqogdn). > 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 10s Starting a Gradle Daemon, 1 busy and 3 incompatible Daemons could not be reused, use --status for details.

C:\Users\Asus\Desktop\first-app\newapp>

java version "20.0.2" 2023-07-18

  • `Unsupported class file major version 64` means something does not support Java 20 (class file version 64) – greg-449 Aug 08 '23 at 12:53
  • 1
    Does this answer your question? [Could not open settings generic class cache for settings file '](https://stackoverflow.com/questions/67240279/could-not-open-settings-generic-class-cache-for-settings-file) – Harsh Patel Aug 09 '23 at 08:00

0 Answers0