apply plugin: 'com.android.library' android { compileSdkVersion rootProject.ext.compileSdkVersion publishNonDefault true defaultConfig { minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion versionCode 2 versionName "2.0" ndk { moduleName "facesdk" ldLibs "log" abiFilters "armeabi","armeabi-v7a"//, "arm64-v8a"//"x86", "arm64-v8a" } } /* sourceSets.main { jni.srcDirs "src/main/jni" jniLibs.srcDir "libs" } */ // sourceSets.main { // jni.srcDirs = [] // jniLibs.srcDir "libs" // } sourceSets { main { jniLibs.srcDirs = ['libs'] } } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } debug { debuggable true jniDebuggable true } } } dependencies { api fileTree(include: ['*.jar'], dir: 'libs') // api files('libs/FaceSDK_2.0.0.1.jar') api project(':modle') }