plugins { id 'com.android.application' id 'kotlin-android' id 'kotlin-android-extensions' id 'kotlin-kapt' } android { compileSdkVersion rootProject.ext.android.compileSdkVersion buildToolsVersion rootProject.ext.android.buildToolsVersion defaultConfig { applicationId "com.common.commonlibtest" minSdkVersion rootProject.ext.android.minSdkVersion targetSdkVersion rootProject.ext.android.targetSdkVersion versionCode rootProject.ext.android.versionCode versionName rootProject.ext.android.versionName testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility JavaVersion.VERSION_11 targetCompatibility JavaVersion.VERSION_11 } dataBinding { enabled = true } viewBinding { enabled = true } } dependencies { implementation 'androidx.appcompat:appcompat:1.2.0' implementation 'com.google.android.material:material:1.3.0' implementation 'androidx.constraintlayout:constraintlayout:2.0.4' implementation project(path: ':commonLib') // 添加kotlin依赖 implementation rootProject.ext.dependencies.kotlin // 添加okhttp依赖 implementation rootProject.ext.dependencies.okhttp // 添加retrofit依赖 implementation rootProject.ext.dependencies.retrofit // 添加retrofit转化gson能力依赖 implementation rootProject.ext.dependencies.converter_gson // 添加rxjava依赖 implementation rootProject.ext.dependencies.rxjava // 添加rxAndroid依赖 implementation rootProject.ext.dependencies.rxandroid // 添加retrofit和rxjava适配器 implementation rootProject.ext.dependencies.retrofit_rxjava }