Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capability resolving #131

Closed
hvisser opened this issue Dec 22, 2023 · 0 comments · Fixed by #134
Closed

Capability resolving #131

hvisser opened this issue Dec 22, 2023 · 0 comments · Fixed by #134

Comments

@hvisser
Copy link
Contributor

hvisser commented Dec 22, 2023

Describe the issue
The configuration for resolving dependencies does not specify any capabilities, therefore when an ambiguous set of capabilities is found by Gradle, the dependency cannot be resolved

Steps to reproduce

[libraries]
foundation = "androidx.compose.foundation:foundation:1.5.4"

Stacktrace

Cannot choose between the following variants of <Info>androidx.compose.foundation:foundation:1.6.0-beta03</Info>:
  - desktopRuntimeElements-published
  - releaseRuntimeElements-published
All of them match the consumer attributes:
  - Variant 'desktopRuntimeElements-published' capability androidx.compose.foundation:foundation:1.6.0-beta03:
      - Unmatched attributes:
          - Provides <Info>org.gradle.category 'library'</Info> but the consumer didn't ask for it
          - Provides <Info>org.gradle.libraryelements 'jar'</Info> but the consumer didn't ask for it
          - Provides <Info>org.gradle.status 'release'</Info> but the consumer didn't ask for it
          - Provides <Info>org.gradle.usage 'java-runtime'</Info> but the consumer didn't ask for it
          - Provides <Info>org.jetbrains.kotlin.platform.type 'jvm'</Info> but the consumer didn't ask for it
  - Variant 'releaseRuntimeElements-published' capability androidx.compose.foundation:foundation:1.6.0-beta03:
      - Unmatched attributes:
          - Provides <Info>org.gradle.category 'library'</Info> but the consumer didn't ask for it
          - Provides <Info>org.gradle.status 'release'</Info> but the consumer didn't ask for it
          - Provides <Info>org.gradle.usage 'java-runtime'</Info> but the consumer didn't ask for it
          - Provides <Info>org.jetbrains.kotlin.platform.type 'androidJvm'</Info> but the consumer didn't ask for it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant