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 = []
   }
}

buildTypes{
   //...
}

###

Add this line to your gradle.properties file

android.useDeprecatedNdk=true

Leave a Reply

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