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

Exception or error:

When I compile a project on Android Studio, I found this error.

I have download the NDK.

enter image description here

Please help.

How to solve:

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

sourceSets {
   main {
     jni.srcDirs = []



Add this line to your file


Leave a Reply

Your email address will not be published. Required fields are marked *