plugins { id 'com.android.library' } android { compileSdkVersion COMPILE_SDK_VERSION buildToolsVersion BUILD_TOOLS_VERSION defaultConfig { minSdkVersion MIN_SDK_VERSION targetSdkVersion TARGET_SDK_VERSION } buildTypes { release { minifyEnabled MINIFY_ENABLE proguardFiles 'proguard-rules.pro' } } buildFeatures { buildConfig = false } lintOptions { abortOnError false } repositories { flatDir { dirs 'libs' } } dexOptions { preDexLibraries = false } //api23以上使用 httpClient useLibrary 'org.apache.http.legacy' } dependencies { compileOnly files('../libs/oaid_sdk_1.0.25.jar') compileOnly files('../libs/android-support-v4.jar') } apply from: 'buildJar.gradle'