Gradle fails at build project

android

(Algambra) #1

Hi all,
I’m newbie in gradle/android and will be grateful for advises.

There is C++ application. Build for it succeeded in Android studio.
And build for it fails when using standalone gradle + same SDK etc.
Of course in both cases was used the same Git repository.

I need in standalone build for Jenkins + Gitlab bundle automation.
I got an error:
14:30:24.433 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Error while executing process /opt/Android/Sdk/ndk-bundle/ndk-build with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=/opt/surf-sight-edge-android/app/src/main/jni/Android.mk NDK_APPLICATION_MK=/opt/surf-sight-edge-android/app/src/main/jni/Application.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=1 APP_PLATFORM=android-21 NDK_OUT=/opt/surf-sight-edge-android/app/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=/opt/surf-sight-edge-android/app/build/intermediates/ndkBuild/debug/lib APP_CPPFLAGS+=-std=c++11 NDK_APPLICATION_MK=src/main/jni/Application.mk GSTREAMER_JAVA_SRC_DIR=src/main/java GSTREAMER_ROOT_ANDROID=/opt/Android/Sdk/gstreamer GSTREAMER_ASSETS_DIR=src/main/assets TBB_ROOT_ANDROID=/opt/Android/Sdk/tbb GTEST_ROOT_ANDROID=/opt/Android/Sdk/googletest gst-build-armeabi-v7a/libgstreamer_android.so}
Project root directory - surf-sight-edge-android
Project contains the only one module - surf-sight-edge-android/app and it contains “src”

I tried a lot of options - nothing helped.