From e6de198a4b987bdddf8fef95f3d4dde223d8c349 Mon Sep 17 00:00:00 2001 From: Adam Comella Date: Fri, 26 Aug 2016 17:08:21 -0700 Subject: [PATCH] Fix gradle clean task Summary: Running the command `./gradlew clean` resulted in the following error: ``` ./node_modules/react-native/ReactAndroid/src/main/jni//xreact/jni/Android.mk:42: *** Android NDK: Aborting. . Stop. Android NDK: ./node_modules/react-native/ReactAndroid/src/main/jni//xreact/jni/Android.mk: Cannot find module with tag 'cxxreact' in import path Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined ? Android NDK: The following directories were searched: ``` The problem was that `REACT_COMMON_DIR` wasn't defined. **Test plan (required)** Running `./gradlew clean` now works. Adam Comella Microsoft Corp. Closes https://github.com/facebook/react-native/pull/9607 Differential Revision: D3780364 fbshipit-source-id: 2b45d538413f7ee2cf0b36a1fa33287f0b1bf23f --- ReactAndroid/build.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/ReactAndroid/build.gradle b/ReactAndroid/build.gradle index 5d90a0f2a..8b67a72c8 100644 --- a/ReactAndroid/build.gradle +++ b/ReactAndroid/build.gradle @@ -202,6 +202,7 @@ task cleanReactNdkLib(type: Exec) { commandLine getNdkBuildFullPath(), "NDK_APPLICATION_MK=$projectDir/src/main/jni/Application.mk", "THIRD_PARTY_NDK_DIR=$buildDir/third-party-ndk", + "REACT_COMMON_DIR=$projectDir/../ReactCommon", '-C', file('src/main/jni/react/jni').absolutePath, 'clean' }