rsetkus
11/10/2020, 3:36 PMandroid {
publishLibraryVariants("release", "debug")
}
I get error:
> Kotlin target 'android' tried to set up publishing for Android build variants that are not library variants or do not exist:
* release
* debug
But when I add buildType
block to android configuration block like this:
android {
....
buildTypes {
val release by creating {
isMinifyEnabled = false
}
val debug by creating {
isDebuggable = true
}
}
}
I get error:
Please initialize at least one Kotlin target in 'kommon (:kommon)'.
release
and debug
build types are set by default. So why publishLibraryVariants("release", "debug")
produce error? 🤔louiscad
11/10/2020, 4:16 PMpublishAllLibraryVariants()
?rsetkus
11/10/2020, 4:19 PM