Same issue as NDK is not configured issue in android studio. I added the path to the properties file and then got the error message. Then I added an empty test.c to the jni folder under app/src/main/jni, as well as app/src/main/jni/jni, but the error is till there.
Error:Execution failed for task ':app:compileDebugNdk'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Richard Jiang\AppData\Local\Android\android-ndk-r10e\ndk-build.cmd'' finished with non-zero exit value 1
I went to the android-ndk-r10e and there is a file called ndk-build.cmd, so I really don't know how to solve the issue.