-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android Build Failure: Error when building with cmake #38237
Comments
Steps to reproduce Run Release build for React Native Application with 0.72.1 |
This is not correct, as I see in your build log that you have Specifically this kind of error:
are happening when libraries are failing to invoke codegen. I would need a reproducer to help you further as I don't know what's happening with your setup. |
|
@cortinico I am able to run |
adding gradle files for your reference: android/app/build.gradle
android/build.gradle
|
@cortinico What works for me is, using |
Are you then able to run |
@cortinico I tried the command Command |
Could you open this same issue here: |
We're experiencing the exactly same issue. @ravindraguptacapgemini , were you able to have it solved? |
Closing as the corresponding issue on the CLI has also been closed react-native-community/cli#2010 Let's open a new issue if the problem persists |
Description
Recently we migrated the app to 0.72.1 from 0.68.0 with New Architecture, earlier we used to get cmake error for android but we were able to fix those either upgrading Gradle or cleaning build folder, so now the debug build works fine but still getting same issues with release build with command
/Users//JenkinsAgentUsevol/workspace/mobilev2_ILX-44410-jenkins-build/includes/utils.rb:13:in
block in safe_sh' /Users/****/JenkinsAgentUsevol/workspace/mobilev2_ILX-44410-jenkins-build/includes/utils.rb:11:in
safe_sh'/Users//JenkinsAgentUsevol/workspace/mobilev2_ILX-44410-jenkins-build/Rakefile.rb:232:in
block (2 levels) in <top (required)>' /Users/****/JenkinsAgentUsevol/workspace/mobilev2_ILX-44410-jenkins-build/Rakefile.rb:214:in
chdir'/Users//JenkinsAgentUsevol/workspace/mobilev2_ILX-44410-jenkins-build/Rakefile.rb:214:in
block in <top (required)>' /Users/****/JenkinsAgentUsevol/workspace/mobilev2_ILX-44410-jenkins-build/Rakefile.rb:146:in
block (2 levels) in <top (required)>'/Users//JenkinsAgentUsevol/workspace/mobilev2_ILX-44410-jenkins-build/Rakefile.rb:91:in
chdir' /Users/****/JenkinsAgentUsevol/workspace/mobilev2_ILX-44410-jenkins-build/Rakefile.rb:91:in
block in <top (required)>'Tasks: TOP => build_android
Please suggest if need to do any additional changes on Jenkins setup, Thanks
React Native Version
0.72.1
Output of
npx react-native info
System:
OS: macOS 13.4
CPU: (12) arm64 Apple M2 Pro
Memory: 414.14 MB / 32.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 16.20.0
path: /usr/local/bin/node
Yarn:
version: 1.22.19
path: /opt/homebrew/bin/yarn
npm:
version: 8.19.4
path: /usr/local/bin/npm
Watchman:
version: 2023.06.26.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.12.1
path: /Users/ravindragupta/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 22.4
- iOS 16.4
- macOS 13.3
- tvOS 16.4
- watchOS 9.4
Android SDK: Not Found
IDEs:
Android Studio: 2022.2 AI-222.4459.24.2221.10121639
Xcode:
version: 14.3.1/14E300c
path: /usr/bin/xcodebuild
Languages:
Java:
version: 11.0.19
path: /usr/bin/javac
Ruby:
version: 3.0.4
path: /Users/ravindragupta/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli":
installed: 11.3.5
wanted: ^11.3.4
react:
installed: 18.2.0
wanted: ^18.2.0
react-native:
installed: 0.72.1
wanted: 0.72.1
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: false
newArchEnabled: true
iOS:
hermesEnabled: false
newArchEnabled: true
Steps to reproduce
Run Release build for React Native Application with 0.72.1 with any of the below commands:
Snack, code example, screenshot, or link to a repository
The text was updated successfully, but these errors were encountered: