plugins { id 'com.android.library' } android { compileSdkVersion 30 buildToolsVersion "30.0.2" defaultConfig { minSdkVersion 23 targetSdkVersion 30 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" consumerProguardFiles "consumer-rules.pro" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } } dependencies { // implementation 'androidx.appcompat:appcompat:1.1.0' // implementation 'com.google.android.material:material:1.1.0' // testImplementation 'junit:junit:4.+' // androidTestImplementation 'androidx.test.ext:junit:1.1.1' // androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' //必须添加的依赖 // compileOnly 'com.android.support:recyclerview-v7:28.0.0' // compileOnly 'com.android.support:support-v4:28.0.0' // compileOnly 'com.android.support:appcompat-v7:28.0.0' // compileOnly 'com.alibaba:fastjson:1.1.46.android' // // compileOnly fileTree(include: ['uniapp-v8-release.aar'], dir: '../app/libs') // compileOnly fileTree(dir: 'libs', include: ['*.jar']) //noinspection GradleCompatible compileOnly 'com.android.support:recyclerview-v7:28.0.0' //noinspection GradleCompatible compileOnly 'com.android.support:support-v4:28.0.0' //noinspection GradleCompatible compileOnly 'com.android.support:appcompat-v7:28.0.0' compileOnly 'com.alibaba:fastjson:1.1.46.android' // compileOnly 'androidx.recyclerview:recyclerview:1.0.0' // compileOnly 'androidx.legacy:legacy-support-v4:1.0.0' // compileOnly 'androidx.appcompat:appcompat:1.0.0' // compileOnly 'com.alibaba:fastjson:1.1.46.android' compileOnly fileTree(dir: '../app/libs', include: ['uniapp-v8-release.aar']) compileOnly 'com.alibaba:fastjson:1.1.46.android' implementation project(path: ':registerlibrary') implementation project(path: ':facelibrary') implementation project(path: ':gatelibrary') }