Error:Execution failed for task ':app:compileDebugNdk'.
> NDK not configured.
Download the NDK from http://developer.android.com/tools/sdk/ndk/.Then add ndk.dir=path/to/ndk in local.properties.
> NDK not configured.
Download the NDK from http://developer.android.com/tools/sdk/ndk/.Then add ndk.dir=path/to/ndk in local.properties.
(On Windows, make sure you escape backslashes, e.g. C:\\ndk rather than C:\ndk)
---------------
解决方法:网上有很多,试了一下这个简单又可用。
在app文件夹下的build.gradle中添加如下内容,即可:
sourceSets.main {
jni.srcDirs = []
}
源:http://www.zhimengzhe.com/Androidkaifa/64372.html