th3rdwave / react-native-safe-area-context

A flexible way to handle safe area insets in JS. Also works on Android and Web!
MIT License
2.09k stars 191 forks source link

Build is failing with an exception. react-native-safe-area-context v4.4.1 #377

Closed rakshitdalal closed 1 year ago

rakshitdalal commented 1 year ago

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).

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.

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.

BUILD FAILED in 49s

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.

jacobp100 commented 1 year ago

There’s not really enough to see what the error is. Maybe try some googling for the errors that come, and stack overflow

it’s not an issue with this library, so I’ll close the issue