-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Execution failed for task ':nodejs-mobile-react-native:buildCMakeDebug[x86]' #88
Comments
yeah I get this exact error too, something is broken. I am unfamiliar with android and dont know how its toolchain works and interacts with this library or react-native. I will research it and if I find something I will post here |
i cant fix it , its very hard ,becouse in java or other sourse code has bug,in project first level index.js function start call a import to react-native module NativeModules,NativeModules value is null object,than function start call it,it report error |
I have the same error here (Mac OS 12, node 22.13.0)
(*) setup steps given here
I've also tried to launch the app with Android Studio (build 21.0.5+-12932927-b750.29 x86_64)
A solution or a workaround is welcome. |
It looks like it the same issue than #78
|
@olivier-nerot thanks,i try it befor report the issue, maybe just my net work problem,i will retry it |
I had this problem, and i use ReactNative 0.76.1,nodejs-mobile-react-native 18.20.4,jdk 21
This is the method I tried
next is error message, please help me , i fix this problem 2 weeks ,but have no clue
FAILURE: Build failed with an exception.
Execution failed for task ':nodejs-mobile-react-native:buildCMakeDebug[x86]'.
C++ build system [build] failed while executing:
@echo off
"C:\Users\Lingwl\AppData\Local\Android\Sdk\cmake\3.22.1\bin\ninja.exe" ^
-C ^
"C:\wnt-app\node_modules\nodejs-mobile-react-native\android\.cxx\Debug\4i3k5t2i\x86" ^
nodejs-mobile-react-native-native-lib
from C:\wnt-app\node_modules\nodejs-mobile-react-native\android
ninja: error: '../../../../libnode/bin/x86/libnode.so', needed by '../../../../build/intermediates/cxx/Debug/4i3k5t2i/obj/x86/libnodejs-mobile-react-native-native-lib.so', missing and no known rule to make it
BUILD FAILED in 8s
this is my android dictory build.gradle configure
buildscript {
ext {
buildToolsVersion = "35.0.0"
minSdkVersion = 24
compileSdkVersion = 35
targetSdkVersion = 34
ndkVersion = "26.1.10909125"
kotlinVersion = "1.9.24"
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle")
classpath("com.facebook.react:react-native-gradle-plugin")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
}
}
apply plugin: "com.facebook.react.rootproject"
The text was updated successfully, but these errors were encountered: