facebook/react-native

Unable to run any Example project [Android]

bozzmob opened this issue · 31 comments

Hi,

I am trying to run the UIExplorer project on Ubuntu 14.04. I am getting the following error-
Execution failed for task ':ReactAndroid:buildReactNdkLib'.
Process 'command '/home/bozzmob/android-ndk-r10e/ndk-build'' finished with non-zero exit value 2

root@purvotara:~/ReactJS/native/react-native# ./gradlew :Examples:UIExplorer:android:app:installDebug
.
.
.
:ReactAndroid:buildReactNdkLib
make: Entering directory /home/bozzmob/ReactJS/native/react-native/ReactAndroid/src/main/jni/react/jni' . . . make: *** [/home/bozzmob/ReactJS/native/react-native/ReactAndroid/build/react-ndk/all/armeabi-v7a/libgnustl_shared.so] Error 1 make: *** Deleting file/home/bozzmob/ReactJS/native/react-native/ReactAndroid/build/react-ndk/all/armeabi-v7a/libgnustl_shared.so'
make: *** Waiting for unfinished jobs....
make: Leaving directory `/home/bozzmob/ReactJS/native/react-native/ReactAndroid/src/main/jni/react/jni'
:ReactAndroid:buildReactNdkLib FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':ReactAndroid:buildReactNdkLib'.

    Process 'command '/home/bozzmob/android-ndk-r10e/ndk-build'' finished with non-zero exit value 2

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 1 mins 34.069 secs

Please can someone help me with this?

@bozzmob Do you have Android NDK installed? If so, try running ./gradlew installDebug --stacktrace and paste the stack trace here, please.

Yes. @felipebueno I do have Android NDK installed. But, the build is failing due to NDK error-

:ReactAndroid:compileLint
:ReactAndroid:copyReleaseLint UP-TO-DATE
:ReactAndroid:preBuild UP-TO-DATE
:ReactAndroid:preReleaseBuild UP-TO-DATE
:ReactAndroid:checkReleaseManifest
:ReactAndroid:preDebugAndroidTestBuild UP-TO-DATE
:ReactAndroid:preDebugBuild UP-TO-DATE
:ReactAndroid:preDebugUnitTestBuild UP-TO-DATE
:ReactAndroid:preReleaseUnitTestBuild UP-TO-DATE
:ReactAndroid:prepareComAndroidSupportAppcompatV72301Library UP-TO-DATE
:ReactAndroid:prepareComAndroidSupportRecyclerviewV72301Library UP-TO-DATE
:ReactAndroid:prepareComAndroidSupportSupportV42301Library UP-TO-DATE
:ReactAndroid:prepareComFacebookFrescoDrawee061Library UP-TO-DATE
:ReactAndroid:prepareComFacebookFrescoFbcore061Library UP-TO-DATE
:ReactAndroid:prepareComFacebookFrescoFresco061Library UP-TO-DATE
:ReactAndroid:prepareComFacebookFrescoImagepipeline061Library UP-TO-DATE
:ReactAndroid:prepareComFacebookFrescoImagepipelineOkhttp061Library UP-TO-DATE
:ReactAndroid:prepareOrgWebkitAndroidJscR174650Library UP-TO-DATE
:ReactAndroid:prepareReleaseDependencies
:ReactAndroid:compileReleaseAidl UP-TO-DATE
:ReactAndroid:compileReleaseRenderscript UP-TO-DATE
:ReactAndroid:generateReleaseBuildConfig UP-TO-DATE
:ReactAndroid:generateReleaseAssets UP-TO-DATE
:ReactAndroid:mergeReleaseAssets UP-TO-DATE
:ReactAndroid:generateReleaseResValues UP-TO-DATE
:ReactAndroid:generateReleaseResources UP-TO-DATE
:ReactAndroid:mergeReleaseResources UP-TO-DATE
:ReactAndroid:processReleaseManifest UP-TO-DATE
:ReactAndroid:processReleaseResources UP-TO-DATE
:ReactAndroid:generateReleaseSources UP-TO-DATE
:ReactAndroid:createNativeDepsDirectories UP-TO-DATE
:ReactAndroid:downloadBoost UP-TO-DATE
:ReactAndroid:prepareBoost UP-TO-DATE
:ReactAndroid:downloadDoubleConversion UP-TO-DATE
:ReactAndroid:prepareDoubleConversion UP-TO-DATE
:ReactAndroid:downloadFolly UP-TO-DATE
:ReactAndroid:prepareFolly UP-TO-DATE
:ReactAndroid:downloadGlog UP-TO-DATE
:ReactAndroid:prepareGlog UP-TO-DATE
:ReactAndroid:downloadJSCHeaders UP-TO-DATE
:ReactAndroid:prepareJSC
:ReactAndroid:buildReactNdkLib
make: Entering directory `/home/bozzmob/ReactJS/native/react-native/ReactAndroid/src/main/jni/react/jni'

[armeabi-v7a] Compile++ thumb: reactnativejni <= OnLoad.cpp

[armeabi-v7a] SharedLibrary  : libfb.so

[armeabi-v7a] SharedLibrary  : libglog.so

[armeabi-v7a] Prebuilt       : libjsc.so <= /home/bozzmob/ReactJS/native/react-native/ReactAndroid/build/third-party-ndk/jsc/jni/armeabi-v7a/

[armeabi-v7a] Compile++ thumb: reactnative <= Bridge.cpp

[armeabi-v7a] Compile++ thumb: reactnative <= Value.cpp

[armeabi-v7a] Compile++ thumb: reactnative <= JSCHelpers.cpp

[armeabi-v7a] Compile++ thumb: reactnative <= JSCExecutor.cpp

[armeabi-v7a] Install        : libjsc.so => /home/bozzmob/ReactJS/native/react-native/ReactAndroid/build/react-ndk/all/armeabi-v7a/libjsc.so

[armeabi-v7a] Install        : libgnustl_shared.so => /home/bozzmob/ReactJS/native/react-native/ReactAndroid/build/react-ndk/all/armeabi-v7a/libgnustl_shared.so

make: *** [/home/bozzmob/ReactJS/native/react-native/ReactAndroid/build/react-ndk/all/armeabi-v7a/libgnustl_shared.so] Error 1

make: *** Deleting file `/home/bozzmob/ReactJS/native/react-native/ReactAndroid/build/react-ndk/all/armeabi-v7a/libgnustl_shared.so'

make: *** Waiting for unfinished jobs....

make: Leaving directory `/home/bozzmob/ReactJS/native/react-native/ReactAndroid/src/main/jni/react/jni'

:ReactAndroid:buildReactNdkLib FAILED


FAILURE: Build failed with an exception.


* What went wrong:

Execution failed for task ':ReactAndroid:buildReactNdkLib'.

> Process 'command '/home/bozzmob/android-ndk-r10e/ndk-build'' finished with non-zero exit value 2



* Try:

Run with --info or --debug option to get more log output.



* Exception is:

org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':ReactAndroid:buildReactNdkLib'.

    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)

    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)

    at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)

    at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)

    at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)

    at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42)

    at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)

    at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)

    at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)

    at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:305)

    at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.executeTask(AbstractTaskPlanExecutor.java:79)

    at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:63)

    at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:51)

    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:23)

    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:88)

    at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:29)

    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:62)

    at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23)

    at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:68)

    at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)

    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:62)

    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:55)

    at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:149)

    at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:106)

    at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:86)

    at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:80)

    at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:33)

    at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:24)

    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:36)

    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)

    at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:51)

    at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:171)


    at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237)

    at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210)

    at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)

    at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)

    at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206)

    at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)

    at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)

    at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)

    at org.gradle.launcher.Main.doAction(Main.java:33)

    at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)

    at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)

    at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)

    at org.gradle.launcher.GradleMain.main(GradleMain.java:23)

    at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:33)

    at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:130)

    at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:48)

Caused by: org.gradle.process.internal.ExecException: Process 'command '/home/bozzmob/android-ndk-r10e/ndk-build'' finished with non-zero exit value 2

    at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:365)

    at org.gradle.process.internal.DefaultExecAction.execute(DefaultExecAction.java:31)

    at org.gradle.api.tasks.AbstractExecTask.exec(AbstractExecTask.java:54)


    at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:63)

    at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.
    java:218)

    at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.
    java:211)

    at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.
    java:200)

    at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:579)

    at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:562)

    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)

    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)

    ... 47 more



BUILD FAILED


Total time: 39.351 secs

@ide Need some insight on how to solve this. I am stuck very badly at this point. Please guide.

ide commented

I can't tell what's going on from the stack trace. You're going to need to debug further.

Please tell me what debug information you need. It's pointing at Android NDK. I am not able to figure out what exit code 2 for react-native is. Unable to resolve this issue. What I am doing wrong?

PS: It works for usual(user created) projects. It's failing for only those example projects.

@bozzmob My first try would be Run with --info or --debug option to get more log output.

@felipebueno You mean-
./gradlew installDebug --stacktrace --info

Executed this command-

./gradlew installDebug --stacktrace --info

Stack Trace -

Successfully started process 'command '/home/bozzmob/android-ndk-r10e/ndk-build''
make: Entering directory `/home/bozzmob/ReactJS/native/react-native/ReactAndroid/src/main/jni/react/jni'
[armeabi-v7a] Compile++ thumb: reactnativejni <= OnLoad.cpp
[armeabi-v7a] SharedLibrary  : libfb.so
[armeabi-v7a] SharedLibrary  : libglog.so
[armeabi-v7a] StaticLibrary  : libdouble-conversion.a
BFD: /home/bozzmob/android-ndk-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/../libexec/gcc/arm-linux-androideabi/4.8/liblto_plugin.so: file too short

BFD: /home/bozzmob/android-ndk-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/../libexec/gcc/arm-linux-androideabi/4.8/liblto_plugin.so: file too short

BFD: /home/bozzmob/android-ndk-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/../libexec/gcc/arm-linux-androideabi/4.8/liblto_plugin.so: file too short

BFD: /home/bozzmob/android-ndk-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/../libexec/gcc/arm-linux-androideabi/4.8/liblto_plugin.so: file too short

BFD: /home/bozzmob/android-ndk-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/../libexec/gcc/arm-linux-androideabi/4.8/liblto_plugin.so: file too short

BFD: /home/bozzmob/android-ndk-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/../libexec/gcc/arm-linux-androideabi/4.8/liblto_plugin.so: file too short

BFD: /home/bozzmob/android-ndk-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/../libexec/gcc/arm-linux-androideabi/4.8/liblto_plugin.so: file too short

BFD: /home/bozzmob/android-ndk-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/../libexec/gcc/arm-linux-androideabi/4.8/liblto_plugin.so: file too short

[armeabi-v7a] Prebuilt       : libjsc.so <= /home/bozzmob/ReactJS/native/react-native/ReactAndroid/build/third-party-ndk/jsc/jni/armeabi-v7a/
[armeabi-v7a] Compile++ thumb: reactnative <= Bridge.cpp
[armeabi-v7a] Compile++ thumb: reactnative <= Value.cpp
[armeabi-v7a] Compile++ thumb: reactnative <= JSCHelpers.cpp
[armeabi-v7a] Compile++ thumb: reactnative <= JSCExecutor.cpp
[armeabi-v7a] Install        : libjsc.so => /home/bozzmob/ReactJS/native/react-native/ReactAndroid/build/react-ndk/all/armeabi-v7a/libjsc.so
[armeabi-v7a] Install        : libgnustl_shared.so => /home/bozzmob/ReactJS/native/react-native/ReactAndroid/build/react-ndk/all/armeabi-v7a/libgnustl_shared.so
make: *** [/home/bozzmob/ReactJS/native/react-native/ReactAndroid/build/react-ndk/all/armeabi-v7a/libgnustl_shared.so] Error 1
make: *** Deleting file `/home/bozzmob/ReactJS/native/react-native/ReactAndroid/build/react-ndk/all/armeabi-v7a/libgnustl_shared.so'
make: *** Waiting for unfinished jobs....
make: Leaving directory `/home/bozzmob/ReactJS/native/react-native/ReactAndroid/src/main/jni/react/jni'
:ReactAndroid:buildReactNdkLib FAILED
:ReactAndroid:buildReactNdkLib (Thread[main,5,main]) completed. Took 12.408 secs.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':ReactAndroid:buildReactNdkLib'.
> Process 'command '/home/bozzmob/android-ndk-r10e/ndk-build'' finished with non-zero exit value 2

* Try:
Run with --debug option to get more log output.

* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':ReactAndroid:buildReactNdkLib'.
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
    at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
    at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)
    at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
    at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42)
    at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
    at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
    at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
    at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:305)
    at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.executeTask(AbstractTaskPlanExecutor.java:79)
    at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:63)
    at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:51)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:23)
    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:88)
    at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:29)
    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:62)
    at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23)
    at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:68)
    at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:62)
    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:55)
    at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:149)
    at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:106)
    at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:86)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:80)
    at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:33)
    at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:24)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:36)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)
    at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:51)
    at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:171)
    at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237)
    at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210)
    at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)
    at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
    at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206)
    at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)
    at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
    at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
    at org.gradle.launcher.Main.doAction(Main.java:33)
    at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
    at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)
    at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)
    at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
    at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:33)
    at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:130)
    at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:48)
Caused by: org.gradle.process.internal.ExecException: Process 'command '/home/bozzmob/android-ndk-r10e/ndk-build'' finished with non-zero exit value 2
    at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:365)
    at org.gradle.process.internal.DefaultExecAction.execute(DefaultExecAction.java:31)
    at org.gradle.api.tasks.AbstractExecTask.exec(AbstractExecTask.java:54)
    at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:63)
    at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:218)
    at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:211)
    at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:200)
    at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:579)
    at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:562)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
    ... 47 more


BUILD FAILED

Total time: 31.832 secs
Stopped 0 compiler daemon(s).```

Debug info-

./gradlew installDebug --stacktrace --debug

01:33:11.606 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter] Executing actions for task ':ReactAndroid:buildReactNdkLib'.
01:33:11.613 [INFO] [org.gradle.process.internal.DefaultExecHandle] Starting process 'command '/home/bozzmob/android-ndk-r10e/ndk-build''. Working directory: /home/bozzmob/ReactJS/native/react-native/ReactAndroid Command: /home/bozzmob/android-ndk-r10e/ndk-build NDK_PROJECT_PATH=null NDK_APPLICATION_MK=/home/bozzmob/ReactJS/native/react-native/ReactAndroid/src/main/jni/Application.mk NDK_OUT=/home/bozzmob/ReactJS/native/react-native/ReactAndroid/build/tmp/buildReactNdkLib NDK_LIBS_OUT=/home/bozzmob/ReactJS/native/react-native/ReactAndroid/build/react-ndk/all THIRD_PARTY_NDK_DIR=/home/bozzmob/ReactJS/native/react-native/ReactAndroid/build/third-party-ndk -C /home/bozzmob/ReactJS/native/react-native/ReactAndroid/src/main/jni/react/jni --jobs 4
01:33:11.614 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Environment for process 'command '/home/bozzmob/android-ndk-r10e/ndk-build'': {TERM=xterm, ANDROID_NDK=/home/bozzmob/android-ndk-r10e/, SHLVL=1, LESSCLOSE=/usr/bin/lesspipe %s %s, SUDO_UID=1000, COLORTERM=gnome-terminal, MAIL=/var/mail/root, ANDROID_PLATFORM_TOOLS=/home/bozzmob/Android/sdk/platform-tools, PWD=/home/bozzmob/ReactJS/native/react-native, LOGNAME=root, SUDO_USER=bozzmob, OLDPWD=/home/bozzmob/ReactJS/native/react-native, SHELL=/bin/bash, LANGUAGE=en_IN:en, SUDO_GID=1000, PATH=/home/bozzmob/google-cloud-sdk/bin:/home/bozzmob/Android/sdk/tools:/home/bozzmob/Android/sdk/platform-tools:/usr/local/heroku/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/bozzmob/ant/bin, DISPLAY=:0, ANT_HOME=/home/bozzmob/ant, USER=root, HOME=/home/bozzmob, LESSOPEN=| /usr/bin/lesspipe %s, XAUTHORITY=/home/bozzmob/.Xauthority, SUDO_COMMAND=/bin/bash, LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:, USERNAME=root, ANDROID_HOME=/home/bozzmob/Android/sdk/tools, LANG=en_IN}
01:33:11.614 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: STARTING
01:33:11.616 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Waiting until process started: command '/home/bozzmob/android-ndk-r10e/ndk-build'.
01:33:11.640 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: STARTED
01:33:11.643 [DEBUG] [org.gradle.process.internal.ExecHandleRunner] waiting until streams are handled...
01:33:11.643 [INFO] [org.gradle.process.internal.DefaultExecHandle] Successfully started process 'command '/home/bozzmob/android-ndk-r10e/ndk-build''
01:33:12.523 [QUIET] [system.out] make: Entering directory `/home/bozzmob/ReactJS/native/react-native/ReactAndroid/src/main/jni/react/jni'
01:33:12.525 [QUIET] [system.out] [armeabi-v7a] Compile++ thumb: reactnativejni <= OnLoad.cpp
01:33:12.526 [QUIET] [system.out] [armeabi-v7a] SharedLibrary  : libfb.so
01:33:12.531 [QUIET] [system.out] [armeabi-v7a] SharedLibrary  : libglog.so
01:33:12.555 [QUIET] [system.out] [armeabi-v7a] Prebuilt       : libjsc.so <= /home/bozzmob/ReactJS/native/react-native/ReactAndroid/build/third-party-ndk/jsc/jni/armeabi-v7a/
01:33:12.722 [QUIET] [system.out] [armeabi-v7a] Compile++ thumb: reactnative <= Bridge.cpp
01:33:13.435 [QUIET] [system.out] [armeabi-v7a] Compile++ thumb: reactnative <= Value.cpp
01:33:13.436 [QUIET] [system.out] [armeabi-v7a] Compile++ thumb: reactnative <= JSCHelpers.cpp
01:33:13.498 [QUIET] [system.out] [armeabi-v7a] Compile++ thumb: reactnative <= JSCExecutor.cpp
01:33:14.839 [QUIET] [system.out] [armeabi-v7a] Install        : libjsc.so => /home/bozzmob/ReactJS/native/react-native/ReactAndroid/build/react-ndk/all/armeabi-v7a/libjsc.so
01:33:15.030 [QUIET] [system.out] [armeabi-v7a] Install        : libgnustl_shared.so => /home/bozzmob/ReactJS/native/react-native/ReactAndroid/build/react-ndk/all/armeabi-v7a/libgnustl_shared.so
01:33:15.034 [ERROR] [system.err] make: *** [/home/bozzmob/ReactJS/native/react-native/ReactAndroid/build/react-ndk/all/armeabi-v7a/libgnustl_shared.so] Error 1
01:33:15.035 [ERROR] [system.err] make: *** Deleting file `/home/bozzmob/ReactJS/native/react-native/ReactAndroid/build/react-ndk/all/armeabi-v7a/libgnustl_shared.so'
01:33:15.036 [ERROR] [system.err] make: *** Waiting for unfinished jobs....
01:33:20.924 [QUIET] [system.out] make: Leaving directory `/home/bozzmob/ReactJS/native/react-native/ReactAndroid/src/main/jni/react/jni'
01:33:20.950 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: FAILED
01:33:20.952 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Process 'command '/home/bozzmob/android-ndk-r10e/ndk-build'' finished with exit value 2 (state: FAILED)
01:33:20.954 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':ReactAndroid:buildReactNdkLib'
01:33:20.957 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :ReactAndroid:buildReactNdkLib FAILED
01:33:20.960 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :ReactAndroid:buildReactNdkLib (Thread[main,5,main]) completed. Took 9.46 secs.
01:33:20.961 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[main,5,main]] finished, busy: 14.477 secs, idle: 0.031 secs
01:33:20.973 [ERROR] [org.gradle.BuildExceptionReporter] 
01:33:20.974 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
01:33:20.974 [ERROR] [org.gradle.BuildExceptionReporter] 
01:33:20.975 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
01:33:20.975 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':ReactAndroid:buildReactNdkLib'.
01:33:20.975 [ERROR] [org.gradle.BuildExceptionReporter] > Process 'command '/home/bozzmob/android-ndk-r10e/ndk-build'' finished with non-zero exit value 2
01:33:20.976 [ERROR] [org.gradle.BuildExceptionReporter] 
01:33:20.976 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is:
01:33:20.977 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':ReactAndroid:buildReactNdkLib'.
01:33:20.977 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
01:33:20.977 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
01:33:20.978 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
01:33:20.978 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)
01:33:20.978 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
01:33:20.979 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42)
01:33:20.979 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
01:33:20.979 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
01:33:20.980 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
01:33:20.980 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:305)
01:33:20.980 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.executeTask(AbstractTaskPlanExecutor.java:79)
01:33:20.981 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:63)
01:33:20.981 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:51)
01:33:20.981 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:23)
01:33:20.982 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:88)
01:33:20.982 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:29)
01:33:20.982 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:62)
01:33:20.983 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23)
01:33:20.983 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:68)
01:33:20.983 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
01:33:20.984 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:62)
01:33:20.984 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:55)
01:33:20.984 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:149)
01:33:20.985 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:106)
01:33:20.985 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:86)
01:33:20.985 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:80)
01:33:20.986 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:33)
01:33:20.986 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:24)
01:33:20.986 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:36)
01:33:20.986 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)
01:33:20.987 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:51)
01:33:20.987 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:171)
01:33:20.987 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237)
01:33:20.987 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210)
01:33:20.988 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)
01:33:20.988 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
01:33:20.988 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206)
01:33:20.989 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)
01:33:20.989 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
01:33:20.989 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
01:33:20.990 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.Main.doAction(Main.java:33)
01:33:20.990 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
01:33:20.990 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)
01:33:20.991 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)
01:33:20.991 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
01:33:20.991 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:33)
01:33:20.992 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:130)
01:33:20.992 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:48)
01:33:20.992 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: org.gradle.process.internal.ExecException: Process 'command '/home/bozzmob/android-ndk-r10e/ndk-build'' finished with non-zero exit value 2
01:33:20.993 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:365)
01:33:20.993 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.process.internal.DefaultExecAction.execute(DefaultExecAction.java:31)
01:33:20.993 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.tasks.AbstractExecTask.exec(AbstractExecTask.java:54)
01:33:20.994 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:63)
01:33:20.994 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:218)
01:33:20.994 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:211)
01:33:20.994 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:200)
01:33:20.995 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:579)
01:33:20.995 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:562)
01:33:20.995 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
01:33:20.995 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
01:33:20.996 [ERROR] [org.gradle.BuildExceptionReporter]    ... 47 more
01:33:20.997 [ERROR] [org.gradle.BuildExceptionReporter] 
01:33:20.998 [LIFECYCLE] [org.gradle.BuildResultLogger] 
01:33:20.999 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD FAILED
01:33:20.999 [LIFECYCLE] [org.gradle.BuildResultLogger] 
01:33:21.000 [LIFECYCLE] [org.gradle.BuildResultLogger] Total time: 39.992 secs
01:33:21.065 [DEBUG] [org.gradle.api.internal.tasks.compile.daemon.CompilerDaemonManager] Stopping 0 compiler daemon(s).
01:33:21.066 [INFO] [org.gradle.api.internal.tasks.compile.daemon.CompilerDaemonManager] Stopped 0 compiler daemon(s).
01:33:21.075 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on buildscript class cache for settings file '/home/bozzmob/ReactJS/native/react-native/settings.gradle' (/root/.gradle/caches/2.2.1/scripts/settings_a2g3qu4enzem48orfxa2l2lca/SettingsScript/buildscript).
01:33:21.075 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on no_buildscript class cache for settings file '/home/bozzmob/ReactJS/native/react-native/settings.gradle' (/root/.gradle/caches/2.2.1/scripts/settings_a2g3qu4enzem48orfxa2l2lca/SettingsScript/no_buildscript).
01:33:21.075 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on buildscript class cache for build file '/home/bozzmob/ReactJS/native/react-native/build.gradle' (/root/.gradle/caches/2.2.1/scripts/build_6psba28rlyob941xay223ehfu/ProjectScript/buildscript).
01:33:21.076 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on no_buildscript class cache for build file '/home/bozzmob/ReactJS/native/react-native/build.gradle' (/root/.gradle/caches/2.2.1/scripts/build_6psba28rlyob941xay223ehfu/ProjectScript/no_buildscript).
01:33:21.076 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on buildscript class cache for build file '/home/bozzmob/ReactJS/native/react-native/ReactAndroid/build.gradle' (/root/.gradle/caches/2.2.1/scripts/build_7lvwopjrklflx73qncdb6t8qv/ProjectScript/buildscript).
01:33:21.076 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on no_buildscript class cache for build file '/home/bozzmob/ReactJS/native/react-native/ReactAndroid/build.gradle' (/root/.gradle/caches/2.2.1/scripts/build_7lvwopjrklflx73qncdb6t8qv/ProjectScript/no_buildscript).
01:33:21.076 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on buildscript class cache for script '/home/bozzmob/ReactJS/native/react-native/ReactAndroid/release.gradle' (/root/.gradle/caches/2.2.1/scripts/release_d0a77fkpap6ug24eh0vf9ovwp/DefaultScript/buildscript).
01:33:21.077 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on no_buildscript class cache for script '/home/bozzmob/ReactJS/native/react-native/ReactAndroid/release.gradle' (/root/.gradle/caches/2.2.1/scripts/release_d0a77fkpap6ug24eh0vf9ovwp/DefaultScript/no_buildscript).
01:33:21.077 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on buildscript class cache for build file '/home/bozzmob/ReactJS/native/react-native/Examples/Movies/android/app/build.gradle' (/root/.gradle/caches/2.2.1/scripts/build_9vouefkmjsx3q8m8mbcv0l3v0/ProjectScript/buildscript).
01:33:21.077 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on no_buildscript class cache for build file '/home/bozzmob/ReactJS/native/react-native/Examples/Movies/android/app/build.gradle' (/root/.gradle/caches/2.2.1/scripts/build_9vouefkmjsx3q8m8mbcv0l3v0/ProjectScript/no_buildscript).
01:33:21.078 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on buildscript class cache for build file '/home/bozzmob/ReactJS/native/react-native/Examples/UIExplorer/android/app/build.gradle' (/root/.gradle/caches/2.2.1/scripts/build_9onfvyiuih6633iihjz7s9exh/ProjectScript/buildscript).
01:33:21.078 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on no_buildscript class cache for build file '/home/bozzmob/ReactJS/native/react-native/Examples/UIExplorer/android/app/build.gradle' (/root/.gradle/caches/2.2.1/scripts/build_9onfvyiuih6633iihjz7s9exh/ProjectScript/no_buildscript).
01:33:21.104 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache module-metadata.bin (/root/.gradle/caches/modules-2/metadata-2.14/module-metadata.bin)
01:33:21.105 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache artifact-at-repository.bin (/root/.gradle/caches/modules-2/metadata-2.14/artifact-at-repository.bin)
01:33:21.105 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache module-artifacts.bin (/root/.gradle/caches/modules-2/metadata-2.14/module-artifacts.bin)
01:33:21.106 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on artifact cache (/root/.gradle/caches/modules-2).
01:33:21.107 [DEBUG] [org.gradle.cache.internal.DefaultCacheAccess] Cache Plugin Resolution Cache (/root/.gradle/caches/2.2.1/plugin-resolution) was closed 0 times.
01:33:21.162 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache fileHashes.bin (/home/bozzmob/ReactJS/native/react-native/.gradle/2.2.1/taskArtifacts/fileHashes.bin)
01:33:21.162 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache outputFileStates.bin (/home/bozzmob/ReactJS/native/react-native/.gradle/2.2.1/taskArtifacts/outputFileStates.bin)
01:33:21.163 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache taskArtifacts.bin (/home/bozzmob/ReactJS/native/react-native/.gradle/2.2.1/taskArtifacts/taskArtifacts.bin)
01:33:21.163 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache fileSnapshots.bin (/home/bozzmob/ReactJS/native/react-native/.gradle/2.2.1/taskArtifacts/fileSnapshots.bin)
01:33:21.164 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on task history cache (/home/bozzmob/ReactJS/native/react-native/.gradle/2.2.1/taskArtifacts).
01:33:21.164 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.memcache.InMemoryCachedRepositoryFactory] In-memory dependency metadata cache closed. Repos cached: 59, cache instances: 3, modules served from cache: 450, artifacts: 153
01:33:21.180 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.CachedStoreFactory] Resolution result cache closed. Cache reads: 0, disk reads: 18 (avg: 0.005 secs, total: 0.097 secs)
01:33:21.180 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.CachedStoreFactory] Resolved configuration cache closed. Cache reads: 1, disk reads: 1 (avg: 0.006 secs, total: 0.006 secs)
01:33:21.180 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.ResolutionResultsStoreFactory] Deleted 2 resolution results binary files in 0.015 secs```

the same error to me "LOCAL_SRC_FILES" . also ndk-r10e ...

Android NDK: ERROR:/Users/mypc/react-native-home/ReactAndroid/build/third-party-ndk/jsc/Android.mk:jsc: LOCAL_SRC_FILES points to a missing file
/Users/mypc/tools/android-ndk/android-ndk-r10e/build/core/prebuilt-library.mk:45: *** Android NDK: Aborting . Stop.
Android NDK: Check that /Users/mypc/react-native-home/ReactAndroid/build/third-party-ndk/jsc/jni/armeabi/libjsc.so exists or that its path is correct

@bozzmob i hack it in gradle now: copy libjsc.so into build folder ,try again ,it success。 the key thing ,is libjsc.so not exist in the jsc-webkit aar, i dont have any other way except rebuiding jsc source code by buck Completely

uiexplorer

I copied libjsc.so into the /ReactAndroid/build path. Still facing the same issue.
@yipengmu I am still not able to get it working. have a look at the logs attached.

collect2: error: ld returned 1 exit status
make: *** [/home/bozzmob/ReactJS/native/react-native/ReactAndroid/build/tmp/buildReactNdkLib/local/armeabi-v7a/libglog.so] Error 1
make: Leaving directory `/home/bozzmob/ReactJS/native/react-native/ReactAndroid/src/main/jni/react/jni'
:ReactAndroid:buildReactNdkLib FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':ReactAndroid:buildReactNdkLib'.
> Process 'command '/home/bozzmob/Android/sdk/ndk-bundle/ndk-build'' finished with non-zero exit value 2

@yipengmu Can you please upload the UIExplorer.apk somewhere? It would be of great help.

UIExplorer.apk
url:http://pan.baidu.com/s/1n17eY pass : p8sm

@sailei1 It says the page does not exist. Please can you check the link once?

Thanks @sailei1 👍

Solved it at Stack Overflow. Closing this issue. Thanks @sailei1 @yipengmu and @ide for your responses and contributions, I could solve initial issues here right away 👍

我也遇到这个问题,楼主解决了吗?

@jiangqingbo 我也遇到了,你解决了吗

t4sk commented

Changing the version of NDK worked for me.
stack overflow

@bozzmob hi ,bozzmob,the same error i met when i try to build the example from the react source code via the docs here. how did u solved the problem? the link u point to stack overflow is 404 now, could u please paste it again? thank you.

mdluo commented

Install android-ndk-r10e rather than android-ndk(r11 by default)

brew uninstall android-ndk
brew install android-ndk-r10e

And add ANDROID_NDK_HOME in your ~/.bash_profile

export ANDROID_NDK_HOME=/usr/local/opt/android-ndk-r10e

Then

./gradlew :Examples:UIExplorer:android:app:installDebug
./packager/packager.sh

i got it working by editing local.properties inside react-native directory with
ndk.dir=~/Library/Android/ndk/android-ndk-r10e

@mdluo @bozzmob @satya164 is there any way possible to make this thing work with NDK r12b (which is the latest version) ?
i am facing the same issue and i think it needs arm toolchain 4.8 while i have with me 4.9.
My log output - https://gist.github.com/vinaynb/13fd43a0d96d30ee0feabe491b7e7c84

@vinaynb I don't think so. is there a reason you can't use r10e?

@satya164 nope no reason i can't use r10e. I'll do it now. I didn't read the docs that RN needs r10e right now and instead straightly downloaded r12b from the downloads page for ndk.

# android-ndk-r10e repalace the old version it works Thank you

android-ndk-r10e, is not working for me , its gives me the error ,
Error:Execution failed for task ':ReactAndroid:buildReactNdkLib'.

Process 'command 'D:\soft\android-ndk-r10e-windows-x86_64\android-ndk-r10e\ndk-build.cmd'' finished with non-zero exit value 2
I am working on Windows 7 environment.