Stylianos Gakis
11/05/2022, 12:31 AMjvm
module, and I want to have access to some compose classes.
I get a problem, where I get an error which among other things says
AmbiguousConfigurationSelectionException: Cannot choose between the following variants of org.jetbrains.skiko:skiko androidRuntimeElements-published awtRuntimeElements-published
Looks a lot like this issue but isn’t quite the same.
Anyone experienced this before? Not sure if it’s the right channel but thought I’d give it a try.Stylianos Gakis
11/05/2022, 12:31 AMruntime
for @Composable and @Stable, and ui
for Modifier, since that’s what the generated code generates for now.Stylianos Gakis
11/05/2022, 12:32 AMorg.jetbrains.compose.runtime:runtime
• org.jetbrains.compose.ui:ui
Stylianos Gakis
11/05/2022, 12:32 AMCaused by: org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve org.jetbrains.skiko:skiko:0.7.34.
Required by:
project :common > project :kspProcessors > org.jetbrains.compose.ui:ui:1.2.0 > org.jetbrains.compose.ui:ui-desktop:1.2.0
Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve org.jetbrains.skiko:skiko:0.7.34.
project :common > project :kspProcessors > org.jetbrains.compose.ui:ui:1.2.0 > org.jetbrains.compose.ui:ui-desktop:1.2.0 > org.jetbrains.compose.ui:ui-graphics:1.2.0 > org.jetbrains.compose.ui:ui-graphics-desktop:1.2.0
project :common > project :kspProcessors > org.jetbrains.compose.ui:ui:1.2.0 > org.jetbrains.compose.ui:ui-desktop:1.2.0 > org.jetbrains.compose.ui:ui-text:1.2.0 > org.jetbrains.compose.ui:ui-text-desktop:1.2.0
Caused by: org.gradle.internal.component.AmbiguousConfigurationSelectionException: Cannot choose between the following variants of org.jetbrains.skiko:skiko:0.7.34:
- androidRuntimeElements-published
- awtRuntimeElements-published
All of them match the consumer attributes:
- Variant 'androidRuntimeElements-published' capability org.jetbrains.skiko:skiko:0.7.34:
Caused by: org.gradle.internal.component.AmbiguousConfigurationSelectionException: Cannot choose between the following variants of org.jetbrains.skiko:skiko:0.7.34:
- Unmatched attributes:
- Provides org.gradle.category 'library' but the consumer didn't ask for it
- Provides org.gradle.libraryelements 'jar' but the consumer didn't ask for it
- Provides org.gradle.status 'release' but the consumer didn't ask for it
- Provides org.gradle.usage 'java-runtime' but the consumer didn't ask for it
- Provides org.jetbrains.kotlin.platform.type 'jvm' but the consumer didn't ask for it
- Provides ui 'android' but the consumer didn't ask for it
- Variant 'awtRuntimeElements-published' capability org.jetbrains.skiko:skiko:0.7.34:
- Unmatched attributes:
- Provides org.gradle.category 'library' but the consumer didn't ask for it
- Provides org.gradle.libraryelements 'jar' but the consumer didn't ask for it
- Provides org.gradle.status 'release' but the consumer didn't ask for it
- Provides org.gradle.usage 'java-runtime' but the consumer didn't ask for it
- Provides org.jetbrains.kotlin.platform.type 'jvm' but the consumer didn't ask for it
Stylianos Gakis
11/05/2022, 12:32 AM