First add a sentence at the end of the gradle.properties file in the project directory: Android.useDeprecatedNdk=true As shown in the
figure:
Then add a method like this to the buildTypes class in the file build.gradle(Module:app)
sourceSets {
main {
jni.srcDirs = []
}
}
- 1
- 2
- 3
- 4
- 5
As shown below
This will compile successfully