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

Cannot resolve dependency when using in a Multiplatform project with JS #1

Open
plusmobileapps opened this issue Jun 26, 2020 · 0 comments

Comments

@plusmobileapps
Copy link
Contributor

So I added the following dependency under common main, and cannot get gradle to sync properly with the following error in a Kotlin Multiplatform project with javascript. Any help would be greatly appreciated.

        implementation("org.reduxkotlin:presenter-middleware:0.2.10")
Warning:<i><b>project ':SharedCode': Unable to build Kotlin project configuration</b>
Details: org.gradle.internal.operations.BuildOperationQueueFailure: There was a failure while populating the build operation queue: Could not resolve all dependencies for configuration ':SharedCode:jsNpm'.
Caused by: org.gradle.api.artifacts.ResolveException: Could not resolve all dependencies for configuration ':SharedCode:jsNpm'.
Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve org.reduxkotlin:presenter-middleware:0.2.10.
Required by:
    project :SharedCode
Caused by: org.gradle.internal.component.NoMatchingConfigurationSelectionException: No matching variant of org.reduxkotlin:presenter-middleware:0.2.10 was found. The consumer was configured to find a usage of 'kotlin-runtime' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'js' but:
  - Variant 'android-debugApiElements' capability org.reduxkotlin:presenter-middleware:0.2.10:
      - Incompatible because this component declares an API of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' and the consumer needed a usage of 'kotlin-runtime' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'js'
  - Variant 'android-debugRuntimeElements' capability org.reduxkotlin:presenter-middleware:0.2.10 declares a runtime of a component:
      - Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'js'
  - Variant 'android-releaseApiElements' capability org.reduxkotlin:presenter-middleware:0.2.10:
      - Incompatible because this component declares an API of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' and the consumer needed a usage of 'kotlin-runtime' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'js'
  - Variant 'android-releaseRuntimeElements' capability org.reduxkotlin:presenter-middleware:0.2.10 declares a runtime of a component:
      - Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'js'
  - Variant 'ios-api' capability org.reduxkotlin:presenter-middleware:0.2.10:
      - Incompatible because this component declares a usage of 'kotlin-api' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native' and the consumer needed a usage of 'kotlin-runtime' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'js'
  - Variant 'iosSim-api' capability org.reduxkotlin:presenter-middleware:0.2.10:
      - Incompatible because this component declares a usage of 'kotlin-api' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native' and the consumer needed a usage of 'kotlin-runtime' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'js'
  - Variant 'jvm-api' capability org.reduxkotlin:presenter-middleware:0.2.10:
      - Incompatible because this component declares an API of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm' and the consumer needed a usage of 'kotlin-runtime' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'js'
  - Variant 'jvm-runtime' capability org.reduxkotlin:presenter-middleware:0.2.10 declares a runtime of a component:
      - Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'js'
  - Variant 'metadata-api' capability org.reduxkotlin:presenter-middleware:0.2.10:
      - Incompatible because this component declares a usage of 'kotlin-api' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'common' and the consumer needed a usage of 'kotlin-runtime' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'js'</i>
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

No branches or pull requests

1 participant