NDK Build failing in Android Studio 2.2.3

556 views Asked by At

I'm having trouble getting my NDK to compile properly in Android Studio. Whenever I try running to compile I am getting the following error.

*Error:Execution failed for task ':Magic:buildNative'. A problem occurred starting process 'command 'ndk-build.cmd''*

Someone please help. I have defined the path of my ndk in local.properties as

ndk.dir=C\:\\Users\\Collo\\AppData\\Local\\Android\\sdk\\ndk-bundle

and in build.gradle as

commandLine "$ndkDir/ndk-build.cmd",
'-C', file ('jni').absolutepath,
'-j', Runtime.runtime.availableProcessors(),
'all', 
'NDK_TOOLCHAIN_VERSION=4.9'

I have tried all i can and I am still getting the error please someone who has ever fixed this to provide the solution and in details please. Thanks

0

There are 0 answers