I\'m using the latest android studio build 1.1 ,since i want to import an eclipse project that needs NDK .i installed NDK and set the NDK location in the local.propert
Try adding this to the build.gradle
file:
sourceSets.main {
jni.srcDirs = []
}
May be this is known NDK bug. Try to add empty .c file to your jni dir (like empty.c).
This solved my problem:
{approot}\app\src\main\jni
Add the following code to your app/gradle.build
file, in the android section. It should look like this:
android {
...
sourceSets.main {
jniLibs.srcDir 'libs'
jni.srcDirs = [] //disable automatic ndk-build call
}
}