apply plugin: 'com.android.library' //apply plugin: 'com.github.dcendents.android-maven' android { compileSdkVersion rootProject.ext.android["compileSdkVersion"] buildToolsVersion rootProject.ext.android["buildToolsVersion"] defaultConfig { minSdkVersion 16 targetSdkVersion rootProject.ext.android["targetSdkVersion"] versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" consumerProguardFiles 'consumer-rules.pro' } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' } debug { jniDebuggable true debuggable true } yufabu { jniDebuggable true debuggable true } } sourceSets.main { jni.srcDirs = []//disable automatic ndk-build call jniLibs.srcDirs = ['libs'] } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) }