Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

I have download the NDK.

enter image description here

Please help.

like image 403
Chong Wang Avatar asked Oct 16 '16 01:10

Chong Wang


2 Answers

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

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

buildTypes{
   //...
}
like image 152
Bhaskar Vaddadi Avatar answered Oct 17 '22 19:10

Bhaskar Vaddadi


Add this line to your gradle.properties file

android.useDeprecatedNdk=true
like image 27
Kishore Veeranki Avatar answered Oct 17 '22 19:10

Kishore Veeranki