Amritansh
12/14/2020, 9:52 PMIncompatible because this component declares a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release' and the consumer needed a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug'
I am getting No matching variant when I try to add my KMM library to my android app via maven local repository.
I have added id("com.android.library")
at the top of plugin list and also added
kotlin {
android {
publishLibraryVariants("release", "debug")
}
}
I have also specified matching fall back for debug in my library's build.gradle
buildTypes {
getByName("release") {
isMinifyEnabled = false
}
getByName("debug"){
matchingFallbacks.add("release")
}
}
Any help will be appreciatedrusshwolf
12/14/2020, 10:00 PMAmritansh
12/14/2020, 10:04 PMdebug, qa, rc and release
build variants in the app so do I need to specify matchingfallbacks for all of them?russhwolf
12/14/2020, 10:04 PM