When I am adding the compose dependency to a (reso...
# compose-desktop
j
When I am adding the compose dependency to a (resolvable) Gradle configuration (
includeImplementation
is my custom configuration) as follows:
Copy code
includeImplementation(compose.desktop.currentOs)
and then trying to resolve the dependencies of this configuration
Copy code
includeImplementation.resolvedConfiguration.firstLevelModuleDependencies
I am getting the following error
Copy code
Caused by: org.gradle.internal.component.AmbiguousConfigurationSelectionException: Cannot choose between the following variants of org.jetbrains.compose.foundation:foundation:1.0.0-beta5:
  - debugRuntimeElements-published
  - desktopRuntimeElements-published
  - releaseRuntimeElements-published
How can I choose one of these variants and avoid this exception?
j
they are the three dependencies, two android and desktop one
you only depends on one?