npx react-native run-android info Starting JS server... info Launching emulator... info Successfully launched emulator. info Installing the app...
FAILURE: Build failed with an exception.
- What went wrong: Could not open settings generic class cache for settings file 'C:\react native\New folder (2)\MyProject\android\settings.gradle' (C:\Users\adilj.gradle\caches\7.5.1\scripts\8klgrkl8ms4dbi7ibulncxwq0).
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 6s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
FAILURE: Build failed with an exception.
- What went wrong: Could not open settings generic class cache for settings file 'C:\react native\New folder (2)\MyProject\android\settings.gradle' (C:\Users\adilj.gradle\caches\7.5.1\scripts\8klgrkl8ms4dbi7ibulncxwq0).
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 6s
at makeError (C:\react native\New folder (2)\MyProject\node_modules\execa\index.js:174:9)
at C:\react native\New folder (2)\MyProject\node_modules\execa\index.js:278:16
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async runOnAllDevices (C:\react native\New folder (2)\MyProject\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:82:7)
at async Command.handleAction (C:\react native\New folder (2)\MyProject\node_modules\@react-native-community\cli\build\index.js:108:9)
info Run CLI with --verbose flag for more details.
npx react-native run-android info Starting JS server... info Launching emulator... info Successfully launched emulator. info Installing the app...
FAILURE: Build failed with an exception.
- What went wrong: Could not open settings generic class cache for settings file 'C:\react native\New folder (2)\MyProject\android\settings.gradle' (C:\Users\adilj.gradle\caches\7.5.1\scripts\8klgrkl8ms4dbi7ibulncxwq0).
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 6s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
FAILURE: Build failed with an exception.
- What went wrong: Could not open settings generic class cache for settings file 'C:\react native\New folder (2)\MyProject\android\settings.gradle' (C:\Users\adilj.gradle\caches\7.5.1\scripts\8klgrkl8ms4dbi7ibulncxwq0).
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 6s
at makeError (C:\react native\New folder (2)\MyProject\node_modules\execa\index.js:174:9)
at C:\react native\New folder (2)\MyProject\node_modules\execa\index.js:278:16
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async runOnAllDevices (C:\react native\New folder (2)\MyProject\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:82:7)
at async Command.handleAction (C:\react native\New folder (2)\MyProject\node_modules\@react-native-community\cli\build\index.js:108:9)
info Run CLI with --verbose flag