NDKBuild Failure NDKBuild Failure windows windows

NDKBuild Failure


I met this kind of problem. First of all You have to give your NDK path in local.properties of your app.

e.g. ndk.dir=/home/user/bin/android_ndk/android-ndk-r10e

Then in my build.gradle file I had something like this for calling ndk build command.

commandLine 'ndk-build', '-C', file('src/main/jni').absolutePath

I'v change it to

commandLine '/home/user/bin/android_ndk/android-ndk-r10e/ndk-build', '-C', file('src/main/jni').absolutePath

I gave full path of NDK build. Hope it'll help you.


In android studio, File->Project Structure -> SDK Location,Set the Android NDK location for your computer.

Thanks!


try this

commandLine'E:\\Android\\ndk\\ndkbuild.cmd','-C',file('src/main/jni').absolutePath

replace (E:\\Android\\ndk\\) with your ndk path.