apply plugin: 'com.android.library' android { compileSdkVersion 28 defaultConfig { minSdkVersion 15 targetSdkVersion 26 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled true shrinkResources false proguardFiles 'proguard-rules.pro' } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) } } android.libraryVariants.all { variant -> variant.outputs.all { outputFileName = 'hnqj-release-1.0.4.aar' } } dependencies { implementation 'com.android.support:support-v4:28.0.0' }