No matter how many tutorials I followed, every time I try to make a project containing C source files gradle outputs the error:
Error:Execution failed for task ':app:compileDebugNdk'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\svprdga\Downloads\android-ndk-r10d_x86\ndk-build.cmd'' finished with non-zero exit value 2
For example, I downloaded the following tutorial, which also throws the same error:
https://github.com/mpospelov/android-studio-ndk-hello-world
I have seen the following questions, but I not understand exactly what I am supposed to do:
execution failed for task ':app:compileDebugNdk' failed to run this command ndk-build.cmd Can't build project with android-ndk and Android Studio
Any help?