problem occurred configuring project ':react-native-safe-area-context'.
Could not open cp_proj generic class cache for build file 'C:\Users\dalalr\Projects\NewProject\node_modules\react-native-safe-area-context\android\build.gradle' (C:\Users\dalalr.gradle\caches\7.5.1\scripts\ew8rpjljdg0mxo5hg38qk6hkd).
What went wrong:
A problem occurred configuring project ':react-native-safe-area-context'.
Could not open cp_proj generic class cache for build file 'C:\Users\dalalr\Projects\NewProject\node_modules\react-native-safe-area-context\android\build.gradle' (C:\Users\dalalr.gradle\caches\7.5.1\scripts\ew8rpjljdg0mxo5hg38qk6hkd).
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.
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
Picked up _JAVA_OPTIONS: -Xmx512M
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring project ':react-native-safe-area-context'.
Could not open cp_proj generic class cache for build file 'C:\Users\dalalr\Projects\NewProject\node_modules\react-native-safe-area-context\android\build.gradle' (C:\Users\dalalr.gradle\caches\7.5.1\scripts\ew8rpjljdg0mxo5hg38qk6hkd).
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.
at makeError (C:\Users\dalalr\Projects\NewProject\node_modules\@react-native-community\cli-platform-android\node_modules\execa\index.js:174:9)
at C:\Users\dalalr\Projects\NewProject\node_modules\@react-native-community\cli-platform-android\node_modules\execa\index.js:278:16
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async runOnAllDevices (C:\Users\dalalr\Projects\NewProject\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:82:7)
at async Command.handleAction (C:\Users\dalalr\Projects\NewProject\node_modules\@react-native-community\cli\build\index.js:108:9)
info Run CLI with --verbose flag for more details.
problem occurred configuring project ':react-native-safe-area-context'.
gradle-wrapper.properties distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists
"react-native-safe-area-context": "4.4.1",
Error: FAILURE: Build failed with an exception.
What went wrong: A problem occurred configuring project ':react-native-safe-area-context'.
Try:
Get more help at https://help.gradle.org
BUILD FAILED in 49s
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 Picked up _JAVA_OPTIONS: -Xmx512M
FAILURE: Build failed with an exception.
What went wrong: A problem occurred configuring project ':react-native-safe-area-context'.
Try:
Get more help at https://help.gradle.org
BUILD FAILED in 49s
info Run CLI with --verbose flag for more details.