apply plugin: 'com.android.library' android { compileSdkVersion 28 buildToolsVersion '28.0.3' defaultConfig { minSdkVersion 19 targetSdkVersion 28 versionCode 1 versionName "1.0" ndk { moduleName 'TestIdcard' abiFilters "armeabi-v7a" //这个是对应的 APP_ABI //abiFilters "arm64-v8a" //这个是对应的 APP_ABI } } sourceSets { main { jniLibs.srcDirs = ['libs'] } } } dependencies { //api(fileTree(include: ['*.jar'], dir: 'libs')) implementation 'androidx.appcompat:appcompat:1.2.0' implementation 'androidx.constraintlayout:constraintlayout:2.0.0' implementation 'androidx.legacy:legacy-support-v4:1.0.0' implementation 'com.google.android.material:material:1.0.0' implementation 'androidx.navigation:navigation-fragment:2.1.0' implementation 'androidx.navigation:navigation-ui:2.1.0' implementation 'androidx.lifecycle:lifecycle-extensions:2.1.0' testImplementation 'junit:junit:4.+' androidTestImplementation 'androidx.test.ext:junit:1.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' api(files('libs/universal-image-loader-1.9.5.jar')) api(files('libs/otg.jar')) }