Skip to content

A problem occurred evaluating script. > Command '[node, [PROJECT_PATH]/node_modules/@react-native-community/cli/build/bin.js, config, --platform, android]' failed with exit code 1. #2502

Description

@lhogan3

Ask your Question

Similar, but not the same as #2469.

My team and I have been running into this android build issue for a month now and have not been able to come up with a solution. This occurs when we run either a ./gradlew clean or ./gradlew build.

npx react-native info output:

 OS: macOS 14.6.1
CPU: (10) arm64 Apple M1 Pro
Memory: 250.11 MB / 32.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 18.17.1
path: ~/.nvm/versions/node/v18.17.1/bin/node
Yarn:
version: 1.22.21
path: ~/.nvm/versions/node/v18.17.1/bin/yarn
npm:
version: 10.2.0
path: ~/.nvm/versions/node/v18.17.1/bin/npm
Watchman:
version: 2024.09.02.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.15.2
path: /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 23.5
- iOS 17.5
- macOS 14.5
- tvOS 17.5
- visionOS 1.2
- watchOS 10.5
Android SDK:
API Levels:
- "31"
- "33"
- "34"
Build Tools:
- 30.0.3
- 33.0.0
- 33.0.1
- 34.0.0
System Images:
- android-34 | Google APIs ARM 64 v8a
- android-34 | Google Play ARM 64 v8a
- android-35 | Google APIs ARM 64 v8a
- android-35 | Google APIs Intel x86_64 Atom
- android-35 | Google Play ARM 64 v8a
- android-35 | Google Play Intel x86_64 Atom
- android-35 | Google Play Experimental 16k Page Size ARM 64 v8a
- android-35 | Google Play Experimental 16k Page Size Intel x86_64 Atom
- android-35 | Pre-Release 16 KB Page Size Google APIs ARM 64 v8a
- android-35 | Pre-Release 16 KB Page Size Google APIs Intel x86_64 Atom
Android NDK: Not Found
IDEs:
Android Studio: 2023.2 AI-232.10300.40.2321.11668458
Xcode:
version: 15.4/15F31d
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.10
path: /usr/bin/javac
Ruby:
version: 2.6.10
path: /usr/bin/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.73.6
wanted: 0.73.6
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: true
newArchEnabled: false

Any help with this would be much appreciated, thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requestedstale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions