-
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
[CXX1405] error when building with cmake #34871
Comments
Can you clarify which version of React Native are you using? |
Also can you please share your |
Hi Nicola, 0.70.2 |
// Top-level build file where you can add configuration options common to all sub-projects/modules. android/build.gradle
android/app/build.gradle
|
Your config seems correct. |
Fixed with updating 🤷 |
Hi @cortinico , I got same issue in 70.3. Any fix for this? as bumping the com.android.tools.build:gradle didn't worked for me |
|
Are you sure?
|
I had the same issue on Windows 10. |
I upped the
But faced another issue. While trying to resolve that new issue I stumbled across this thread and a comment After applying changes from that thread to my |
How did you do this? |
this works for me windows 11 |
what works with me on M1 mac was by opening AS from terminal like this: i am using iTerm2 and not in Rosetta |
This and a lot of other C++ build failures where fixed on 0.71 |
Could this be related? https://issuetracker.google.com/issues/175291074
|
Nope that's not related |
+1. Same for me Got the error on android/build.gradle: I don't have this path in my project: |
I'm closing as @alfredarcifa is unresponsive. If you're still seeing similar issues like this one (e.g. as @Dat-Mobile mentioned), open a new issue and provide a reproducer. |
for win11, cmake build error, found the solution
|
I just removed If doesn't work, remove |
Same issue, Please give me solution . |
You must only install C++ sdk to your pc. and do the following processes respectively:
|
hey did u find any solution ? |
I just cleared all the cache, path on windows: C:\Users\xxx.gradle\ |
hey , tried with that too but still getting this > [CXX1428] exception while building Json A problem occurred starting process 'command 'C:\Users\hp\AppData\Local\Android\Sdk\cmake\3.22.1\bin\cmake.exe'' , any other way? to get resolved from this |
hey how did you find the cmake system path? |
Maybe related to very long paths? Try enabling long paths or move the project to e.g. |
This way work for me!, thanks a lot |
uninstall cmake and reinstall it |
I am reinstsall windows system with new english words user name and build success |
@AkanshaMundel thanks. It's working fine. |
[CXX1429] error when building with cmake using C:\Users\ry042\OneDrive\Desktop\gitp\Android_2\httpsupgrade\httpsupgrade-impl\CMakeLists.txt: -- Detecting C compiler ABI info C++ build system [configure] failed while executing:
near the top of the file, but after cmake_minimum_required(). CMake is pretending there is a "project(Project)" command on the first CMake Error at CMakeLists.txt:13 (add_library):
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h CMake Error at CMakeLists.txt:13 (add_library): CMake Generate step failed. Build files cannot be regenerated correctly. |
Hey, did you solved it? |
Not working in Mac M1 pro |
Description
Hi RN community,
I have an issue with ANDROID STUDIO when I try to build my app with new arch.
Below is the error.
Before I run:
Version
0.70.2
Output of
npx react-native info
System:
OS: macOS 12.6
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory: 353.41 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 18.6.0 - ~/.nvm/versions/node/v18.6.0/bin/node
Yarn: 1.22.19 - ~/.yarn/bin/yarn
npm: 8.19.2 - ~/.nvm/versions/node/v18.6.0/bin/npm
Watchman: 2022.09.26.00 - /usr/local/bin/watchman
Managers:
CocoaPods: Not Found
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 16.0, macOS 12.3, tvOS 16.0, watchOS 9.0
Android SDK:
API Levels: 29, 30, 31
Build Tools: 29.0.2, 30.0.2, 30.0.3, 31.0.0
System Images: android-30 | Google APIs Intel x86 Atom, android-30 | Google Play Intel x86 Atom, android-31 | Google APIs Intel x86 Atom_64, android-31 | Google Play Intel x86 Atom_64
Android NDK: 22.1.7171670
IDEs:
Android Studio: 2021.2 AI-212.5712.43.2112.8512546
Xcode: 14.0.1/14A400 - /usr/bin/xcodebuild
Languages:
Java: javac 19 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.1.0 => 18.1.0
react-native: 0.70.2 => 0.70.2
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
Android Studio > Build > Clean Project
Android Studio > Build > Refresh Linked C++ Project ( I have an issue CMake Error in CMakeLists.txt: Imported target "fbjni" includes non-existent path)
Android Studio > Build > Build Project > [CXX1405] error when building with cmake
Snack, code example, screenshot, or link to a repository
android/gradle.properties
android/app/proguard-rules.pro
android/app/src/main/jni/CMakeLists.txt
The text was updated successfully, but these errors were encountered: