-
Notifications
You must be signed in to change notification settings - Fork 24.2k
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] fix cleanReactNdkLib task failure caused by module not found #7935
Conversation
I ran into the exact same issue today and came up with a similar fix before noticing this pull request. That being said, here are a few remarks that should be considered:
Don't have too much time to look deeper into this atm unfortunately but just wanted to give out some things I noticed. |
It's been a while since the last commit was reviewed and the labels show this pull request needs review. Based on the blame information for the files in this pull request we identified @cjhopman as a potential reviewer. Could you take a look please or cc someone with more context? |
Is this still relevant? |
I ran into this issue in the last week when trying to clean my project on the |
@facebook-github-bot shipit |
Thanks, good job, guys |
Thanks for importing. If you are an FB employee go to Phabricator to review internal test results. |
37df151
Summary: The `clean` task always fail due to the failure of the `cleanReactNdkLib` task, error messages: ``` :ReactAndroid:cleanReactNdkLib Android NDK: /my/react-native/ReactAndroid/src/main/jni/react/jni/Android.mk: Cannot find module with tag 'react' in import path Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined ? Android NDK: The following directories were searched: Android NDK: make: Entering directory `/my/react-native/ReactAndroid/src/main/jni/react/jni' make: Leaving directory `/my/react-native/ReactAndroid/src/main/jni/react/jni' /my/react-native/ReactAndroid/src/main/jni/react/jni/Android.mk:31: *** Android NDK: Aborting. . Stop. :ReactAndroid:cleanReactNdkLib FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':ReactAndroid:cleanReactNdkLib'. > Process 'command '/usr/local/opt/android-ndk/ndk-build'' finished with non-zero exit value 2 * Try: Run with --stacktrace option to get the stack trace. Run with --info Closes facebook#7935 Differential Revision: D3646120 Pulled By: bestander fbshipit-source-id: c869ff4a2d3407643fdeec431f454071747eb429
Summary: The `clean` task always fail due to the failure of the `cleanReactNdkLib` task, error messages: ``` :ReactAndroid:cleanReactNdkLib Android NDK: /my/react-native/ReactAndroid/src/main/jni/react/jni/Android.mk: Cannot find module with tag 'react' in import path Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined ? Android NDK: The following directories were searched: Android NDK: make: Entering directory `/my/react-native/ReactAndroid/src/main/jni/react/jni' make: Leaving directory `/my/react-native/ReactAndroid/src/main/jni/react/jni' /my/react-native/ReactAndroid/src/main/jni/react/jni/Android.mk:31: *** Android NDK: Aborting. . Stop. :ReactAndroid:cleanReactNdkLib FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':ReactAndroid:cleanReactNdkLib'. > Process 'command '/usr/local/opt/android-ndk/ndk-build'' finished with non-zero exit value 2 * Try: Run with --stacktrace option to get the stack trace. Run with --info Closes facebook#7935 Differential Revision: D3646120 Pulled By: bestander fbshipit-source-id: c869ff4a2d3407643fdeec431f454071747eb429
Am still facing this issue "Cannot find module with tag 'folly' in import path" on React 0.36 on jenkins build server, someone please guide for a solution related to the same |
@belemaire, what you described above is exactly whats happening to me. I am using RN 0.45.1, mac OS Sierra and Android Studio 2.3.3. |
The
clean
task always fail due to the failure of thecleanReactNdkLib
task, error messages:Fixed it by specifying the location of
Application.mk
andTHIRD_PARTY_NDK_DIR
, same as thebuildReactNdkLib
task.