I 'm trying to compile OPUS in Android Studio. When I call ndk-build from command line, everything works fine. When I build it from Android Studio, it fails.
My app.gradle:
externalNativeBuild {
ndkBuild {
path 'src/main/jni/Android.mk'
}
}
Android.mk has some includes:
include celt_sources.mk
The error:
Error while executing process G:\ASDK\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=F:\TP2\ram\android\app\src\main\jni\Android.mk NDK_APPLICATION_MK=F:\TP2\ram\android\app\src\main\jni\Application.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=0 APP_PLATFORM=android-19 NDK_OUT=F:/TP2/ram/android/app/build/intermediates/ndkBuild/release/obj NDK_LIBS_OUT=F:\TP2\ram\android\app\build\intermediates\ndkBuild\release\lib APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -B -n}
Why NDK_PROJECT_PATH null? How do I tell Android Studio to set the current directory before calling ndk-build?
Best,