It looks like you have problems compiling native (C ++) response sources to your own android. To start a new project, you do not need to do this (NDK configuration is not required), and therefore you can just try creating a sample project using react-native init (see this for instructions). After that, you can simply copy the sample application JS files into your newly created project.
If you still want to create the infrastructure code from the source code, I will need additional information to help you. I would suggest enabling verbose mode for ndk-build, after which you can return here with the exit. To enable verbose mode, you will need to modify this file: ReactAndroid / build.gradle and add 'V=1' to args so that the code fragment I linked to looks like this:
commandLine getNdkBuildFullPath(), 'NDK_PROJECT_PATH=null', 'V=1', "NDK_APPLICATION_MK=$projectDir/src/main/jni/Application.mk", 'NDK_OUT=' + temporaryDir,
kzzzf
source share