{
"name": "AwesomeProject",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"lint": "eslint .",
"start": "react-native start",
"test": "jest"
},
"dependencies": {
"@react-navigation/bottom-tabs": "^7.2.0",
"@react-navigation/elements": "^2.2.5",
"@react-navigation/native": "^7.0.14",
"@react-navigation/native-stack": "^7.2.0",
"@rneui/base": "^4.0.0-rc.7",
"@rneui/themed": "^4.0.0-rc.8",
"react": "18.3.1",
"react-native": "0.76.5",
"react-native-safe-area-context": "4.0.0",
"react-native-screens": "^4.5.0",
"react-native-svg": "^15.11.1",
"react-native-vector-icons": "^10.2.0",
"react-native-webview": "^13.12.5",
"zustand": "^5.0.3"
},
"devDependencies": {
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.3",
"@babel/runtime": "^7.25.0",
"@react-native-community/cli": "15.0.1",
"@react-native-community/cli-platform-android": "15.0.1",
"@react-native-community/cli-platform-ios": "15.0.1",
"@react-native/babel-preset": "0.76.5",
"@react-native/eslint-config": "0.76.5",
"@react-native/metro-config": "0.76.5",
"@react-native/typescript-config": "0.76.5",
"@types/react": "^18.2.6",
"@types/react-test-renderer": "^18.0.0",
"babel-jest": "^29.6.3",
"babel-plugin-module-resolver": "^5.0.2",
"eslint": "^8.19.0",
"jest": "^29.6.3",
"prettier": "2.8.8",
"react-native-svg-transformer": "^1.5.0",
"react-test-renderer": "18.3.1",
"typescript": "5.0.4"
},
"engines": {
"node": ">=18"
}
}
info A dev server is already running for this project on port 8081.
info Installing the app...
13 actionable tasks: 3 executed, 10 up-to-date
info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx 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.
* Where:
Build file 'D:\learn\react-native\RN_AQ\node_modules\react-native-safe-area-context\android\build.gradle' line: 108
* What went wrong:
A problem occurred evaluating project ':react-native-safe-area-context'.
> Project with path ':ReactAndroid' could not be found in project ':react-native-safe-area-context'.
* 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. Command failed with exit code 1: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081 FAILURE: Build failed with an exception. * Where: Build file 'D:\learn\react-native\RN_AQ\node_modules\react-native-safe-area-context\android\build.gradle' line: 108 * What went wrong: A problem occurred evaluating project ':react-native-safe-area-context'. > Project with path ':ReactAndroid' could not be found in project ':react-native-safe-area-context'. * 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.
info Run CLI with --verbose flag for more details.
Before this issue occurred, the react-native-safe-area-context I installed was the latest version. However, during the installation, I was prompted that there was a version conflict with dependencies, so I had to lower the version of this dependency. But after doing so, I encountered the problem mentioned above.
Discussed in #3965
Originally posted by ChaseWindYoungs February 8, 2025
this is my project.json
when i run
npx react-native run-androidsome errors in terminal
Before this issue occurred, the react-native-safe-area-context I installed was the latest version. However, during the installation, I was prompted that there was a version conflict with dependencies, so I had to lower the version of this dependency. But after doing so, I encountered the problem mentioned above.
somebody can tell me what can i do ?