apply plugin: 'com.android.library' apply plugin: 'kotlin-android' android { namespace "me.gujun.android.span" compileSdk versions.compileSdk defaultConfig { minSdk versions.minSdk targetSdk versions.targetSdk } sourceSets { main.java.srcDirs += 'src/main/kotlin' } } dependencies { implementation 'com.android.support:support-annotations:28.0.0' }