apply plugin: 'com.android.library' android { namespace 'com.baidu.idl.main.facesdk' compileSdkVersion 29 // buildToolsVersion '26.0.2' publishNonDefault true defaultConfig { minSdkVersion 22 targetSdkVersion 29 versionCode 5 versionName "5.0" ndk { moduleName "facesdk" ldLibs "log" abiFilters "armeabi-v7a" } } /* sourceSets.main { jni.srcDirs "src/main/jni" jniLibs.srcDir "libs" } */ sourceSets.main { jni.srcDirs = [] jniLibs.srcDir "libs" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' // buildConfigField 'boolean', 'USE_AIKL', 'true' } debug { debuggable true // jniDebuggable true // buildConfigField 'boolean', 'USE_AIKL', 'true' } } packagingOptions { pickFirst 'lib/x86/libc++_shared.so' pickFirst 'lib/x86_64/libc++_shared.so' pickFirst 'lib/armeabi-v7a/libc++_shared.so' pickFirst 'lib/arm64-v8a/libc++_shared.so' } } dependencies { // implementation fileTree(include: ['*.jar','*.aar'], dir: 'libs') // api 'org.jetbrains:annotations-java5:15.0' api(name:'ImiSDK', ext: 'aar') api(name:'orbbec_module-debug', ext: 'aar') api(name:'deptrumSDK', ext: 'aar') api(name:'opencv', ext: 'aar') api(name:'FaceSDK_8.1_20230216-release', ext: 'aar') /* implementation files('libs/orbbec_module-debug.aar') implementation files('libs/ImiSDK.aar') implementation files('libs/deptrumSDK.aar') implementation files('libs/opencv.aar') implementation files('libs/FaceSDK_8.1_20230216-release.aar')*/ }