apply plugin: '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 versionCode rootProject.ext.android.versionCode versionName rootProject.ext.android.versionName versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { implementation('com.blankj:utilcode:1.30.7', { exclude group: 'com.google.code.gson', module: 'gson' }) implementation ('me.dm7.barcodescanner:zxing:1.8.4', { exclude group: 'com.google.zxing', module: 'core' }) api(rootProject.ext.dependencies.Zxing) api(rootProject.ext.androidx.constraintlayout) }