apply plugin: 'com.android.library' android { compileSdkVersion 26 buildToolsVersion '28.0.3' defaultConfig { minSdkVersion 16 targetSdkVersion 26 versionCode 1 versionName "1.0" consumerProguardFiles 'proguard-rules.pro' buildConfigField 'boolean', 'MEDIA_DEBUG', 'false' } buildTypes { release { // minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'library.pro' } } } repositories { flatDir { dirs 'libs' } mavenCentral() google() } dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') implementation 'androidx.annotation:annotation-jvm:+' implementation 'androidx.core:core:1.10.1' }