Error: Your project contains C++ files but it is not using a supported native build system

android, android-ndk

Solution

Put this part in `build.gradle(Module:app)` above `buildTypes{}`

sourceSets {
   main {
     jni.srcDirs = []
   }
}

buildTypes{
   //...
}

Problem

When I compile a project on Android Studio, I found this error. I have download the NDK. Please help.

Original source

Related problems