apply plugin: 'com.android.library' android { compileSdkVersion 30 // buildToolsVersion '26.0.2' publishNonDefault true defaultConfig { minSdkVersion 22 targetSdkVersion 30 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' } } repositories { flatDir { dirs 'libs' } } } dependencies { // compile fileTree(include: ['*.jar'], dir: 'libs') compileOnly fileTree(include: ['*.jar'], dir: 'libs') // implementation 'org.jetbrains:annotations-java5:15.0' compile files('libs/orbbec_module-debug.aar') compile files('libs/ImiSDK.aar') compile files('libs/deptrumSDK.aar') compile files('libs/opencv.aar') compile files('libs/FaceSDK_8.1_20230216-release.aar') // api files('libs/orbbec_module-debug.aar') // api files('libs/ImiSDK.aar') // api files('libs/deptrumSDK.aar') // api files('libs/opencv.aar') // api files('libs/FaceSDK_8.1_20230216-release.aar') // implementation fileTree(include: ['*.jar'], dir: 'libs') // implementation(name: 'orbbec_module-debug', ext: 'aar') // implementation(name: 'ImiSDK', ext: 'aar') // implementation(name: 'deptrumSDK', ext: 'aar') // implementation(name: 'opencv', ext: 'aar') // implementation(name: 'FaceSDK_8.1_20230216-release', ext: 'aar') // implementation(name: 'orbbec_module-debug', ext: 'aar') // implementation(name: 'ImiSDK', ext: 'aar') // implementation(name: 'deptrumSDK', ext: 'aar') // implementation(name: 'opencv', ext: 'aar') // implementation(name: 'FaceSDK_8.1_20230216-release', ext: 'aar') }