apply plugin: 'com.android.library' android { compileSdkVersion 31 defaultConfig { minSdkVersion 23 targetSdkVersion 31 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } //启用DataBinding buildFeatures{ dataBinding = true // for view binding : // viewBinding = true } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) api 'android.arch.lifecycle:extensions:1.1.1' api 'com.squareup.retrofit2:retrofit:2.5.0' api 'com.squareup.retrofit2:converter-scalars:2.3.0' api 'com.squareup.retrofit2:converter-gson:2.4.0' api 'com.squareup.retrofit2:adapter-rxjava2:2.4.0' api 'io.reactivex.rxjava2:rxjava:2.1.16' api 'io.reactivex.rxjava2:rxandroid:2.0.2' api 'androidx.recyclerview:recyclerview:1.1.0' api 'com.github.bumptech.glide:glide:4.11.0' annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0' // api 'com.android.support:design:28.0.0' api 'androidx.appcompat:appcompat:1.1.0' api 'androidx.constraintlayout:constraintlayout:1.1.3' api 'androidx.viewpager2:viewpager2:1.0.0' api 'com.google.android.material:material:1.1.0' testImplementation "junit:junit:4.13.1" androidTestImplementation 'androidx.test.ext:junit:1.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' api 'io.github.hariprasanths:bounceview-android:0.2.0' }