Tóth István Zoltán
05/29/2024, 3:59 AMExecution failed for task ':adaptive-ui:adaptive-ui-common:generatePomFileForAndroidDebugPublication'.
> Could not apply withXml() to generated POM
> The consumer was configured to find a library for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.2.0', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm'. However we cannot choose between the following variants of project :adaptive-core:
- Configuration ':adaptive-core:debugApiElements' variant android-classes-jar declares a library for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.2.0', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm':
- Unmatched attributes:
- Provides attribute 'artifactType' with value 'android-classes-jar' but the consumer didn't ask for it
- Provides attribute 'com.android.build.gradle.internal.attributes.VariantAttr' with value 'debug' but the consumer didn't ask for it
- Provides its elements packaged as a jar but the consumer didn't ask for it
Tóth István Zoltán
05/29/2024, 4:02 AMandroidTarget {
publishLibraryVariants("release", "debug")
@OptIn(ExperimentalKotlinGradlePluginApi::class)
compilerOptions.jvmTarget.set(JvmTarget.JVM_11)
}
Core library:
https://github.com/spxbhuhb/adaptive/blob/5f0f4f05a37395a5cb45574cfc9d3cd38b991395/adaptive-core/build.gradle.kts
UI library (depends on the core):
https://github.com/spxbhuhb/adaptive/blob/5f0f4f05a37395a5cb45574cfc9d3cd38b991395/adaptive-ui/adaptive-ui-common/build.gradle.ktsTóth István Zoltán
05/29/2024, 4:04 AMandroidTarget
to the core libary.Pablichjenkov
05/29/2024, 4:18 AMapi(project(":adaptive-core"))
something changes? - using the old notationTóth István Zoltán
05/29/2024, 5:03 AMPablichjenkov
05/29/2024, 5:32 AMtapchicoma
05/31/2024, 9:52 AMTóth István Zoltán
05/31/2024, 10:43 AM