plugins { id 'com.android.library' } android { compileSdkVersion rootProject.ext.android.compileSdkVersion buildToolsVersion rootProject.ext.android.buildToolsVersion defaultConfig { minSdkVersion rootProject.ext.android.minSdkVersion targetSdkVersion rootProject.ext.android.targetSdkVersion externalNativeBuild { cmake { cppFlags '-std=c++11 -frtti -fexceptions -lz' abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64' } } ndk { // 设置支持的SO库架构 abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64' } } buildFeatures { buildConfig false } buildTypes { release { minifyEnabled false proguardFiles 'proguard-rules.pro' } } lintOptions { abortOnError false } repositories { flatDir { dirs 'libs' } } dexOptions { preDexLibraries = false } compileOptions { sourceCompatibility JavaVersion.VERSION_1_7 targetCompatibility JavaVersion.VERSION_1_7 } externalNativeBuild { cmake { path "CMakeLists.txt" version '3.10.2' } } } dependencies { api files('libs/android-support-v4.jar') api files('libs/mmkv-static-1.2.8.jar') api files('libs/yyxx_support_1.0.1.jar') api files('libs/dolin_zap_1.0.0.jar') }