Incompatible 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 appreciated