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

arrow-core-high-arity causes build to fail with duplicate class errors #3492

Open
0bon opened this issue Sep 23, 2024 · 0 comments
Open

arrow-core-high-arity causes build to fail with duplicate class errors #3492

0bon opened this issue Sep 23, 2024 · 0 comments

Comments

@0bon
Copy link

0bon commented Sep 23, 2024

I am trying to use the high arity module for my project, however, including it breaks my code.

build file:

implementation('io.arrow-kt:arrow-fx-coroutines-jvm:1.2.4')
implementation("io.arrow-kt:arrow-core-jvm:1.2.4")
implementation("io.arrow-kt:arrow-core-high-arity-jvm:1.2.4")

Errors

> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
   > Duplicate class arrow.core.IterableKt found in modules arrow-core-high-arity-jvm-1.2.4.jar -> arrow-core-high-arity-jvm-1.2.4 (io.arrow-kt:arrow-core-high-arity-jvm:1.2.4) and arrow-core-jvm-1.2.4.jar -> arrow-core-jvm-1.2.4 (io.arrow-kt:arrow-core-jvm:1.2.4)
     Duplicate class arrow.core.MapKt found in modules arrow-core-high-arity-jvm-1.2.4.jar -> arrow-core-high-arity-jvm-1.2.4 (io.arrow-kt:arrow-core-high-arity-jvm:1.2.4) and arrow-core-jvm-1.2.4.jar -> arrow-core-jvm-1.2.4 (io.arrow-kt:arrow-core-jvm:1.2.4)
     Duplicate class arrow.core.NonEmptyListKt found in modules arrow-core-high-arity-jvm-1.2.4.jar -> arrow-core-high-arity-jvm-1.2.4 (io.arrow-kt:arrow-core-high-arity-jvm:1.2.4) and arrow-core-jvm-1.2.4.jar -> arrow-core-jvm-1.2.4 (io.arrow-kt:arrow-core-jvm:1.2.4)
     Duplicate class arrow.core.SequenceKt found in modules arrow-core-high-arity-jvm-1.2.4.jar -> arrow-core-high-arity-jvm-1.2.4 (io.arrow-kt:arrow-core-high-arity-jvm:1.2.4) and arrow-core-jvm-1.2.4.jar -> arrow-core-jvm-1.2.4 (io.arrow-kt:arrow-core-jvm:1.2.4)
     Duplicate class arrow.core.SequenceKt$zip$$inlined$Sequence$1 found in modules arrow-core-high-arity-jvm-1.2.4.jar -> arrow-core-high-arity-jvm-1.2.4 (io.arrow-kt:arrow-core-high-arity-jvm:1.2.4) and arrow-core-jvm-1.2.4.jar -> arrow-core-jvm-1.2.4 (io.arrow-kt:arrow-core-jvm:1.2.4)
     Duplicate class arrow.core.SequenceKt$zip$$inlined$Sequence$2 found in modules arrow-core-high-arity-jvm-1.2.4.jar -> arrow-core-high-arity-jvm-1.2.4 (io.arrow-kt:arrow-core-high-arity-jvm:1.2.4) and arrow-core-jvm-1.2.4.jar -> arrow-core-jvm-1.2.4 (io.arrow-kt:arrow-core-jvm:1.2.4)
     Duplicate class arrow.core.SequenceKt$zip$$inlined$Sequence$3 found in modules arrow-core-high-arity-jvm-1.2.4.jar -> arrow-core-high-arity-jvm-1.2.4 (io.arrow-kt:arrow-core-high-arity-jvm:1.2.4) and arrow-core-jvm-1.2.4.jar -> arrow-core-jvm-1.2.4 (io.arrow-kt:arrow-core-jvm:1.2.4)
     Duplicate class arrow.core.SequenceKt$zip$$inlined$Sequence$4 found in modules arrow-core-high-arity-jvm-1.2.4.jar -> arrow-core-high-arity-jvm-1.2.4 (io.arrow-kt:arrow-core-high-arity-jvm:1.2.4) and arrow-core-jvm-1.2.4.jar -> arrow-core-jvm-1.2.4 (io.arrow-kt:arrow-core-jvm:1.2.4)
     Duplicate class arrow.core.SequenceKt$zip$$inlined$Sequence$5 found in modules arrow-core-high-arity-jvm-1.2.4.jar -> arrow-core-high-arity-jvm-1.2.4 (io.arrow-kt:arrow-core-high-arity-jvm:1.2.4) and arrow-core-jvm-1.2.4.jar -> arrow-core-jvm-1.2.4 (io.arrow-kt:arrow-core-jvm:1.2.4)
     Duplicate class arrow.core.SequenceKt$zip$$inlined$Sequence$6 found in modules arrow-core-high-arity-jvm-1.2.4.jar -> arrow-core-high-arity-jvm-1.2.4 (io.arrow-kt:arrow-core-high-arity-jvm:1.2.4) and arrow-core-jvm-1.2.4.jar -> arrow-core-jvm-1.2.4 (io.arrow-kt:arrow-core-jvm:1.2.4)
     Duplicate class arrow.core.SequenceKt$zip$$inlined$Sequence$7 found in modules arrow-core-high-arity-jvm-1.2.4.jar -> arrow-core-high-arity-jvm-1.2.4 (io.arrow-kt:arrow-core-high-arity-jvm:1.2.4) and arrow-core-jvm-1.2.4.jar -> arrow-core-jvm-1.2.4 (io.arrow-kt:arrow-core-jvm:1.2.4)
     Duplicate class arrow.core.SequenceKt$zip$$inlined$Sequence$8 found in modules arrow-core-high-arity-jvm-1.2.4.jar -> arrow-core-high-arity-jvm-1.2.4 (io.arrow-kt:arrow-core-high-arity-jvm:1.2.4) and arrow-core-jvm-1.2.4.jar -> arrow-core-jvm-1.2.4 (io.arrow-kt:arrow-core-jvm:1.2.4)
     Duplicate class arrow.core.SequenceKt$zip$1$1 found in modules arrow-core-high-arity-jvm-1.2.4.jar -> arrow-core-high-arity-jvm-1.2.4 (io.arrow-kt:arrow-core-high-arity-jvm:1.2.4) and arrow-core-jvm-1.2.4.jar -> arrow-core-jvm-1.2.4 (io.arrow-kt:arrow-core-jvm:1.2.4)
     Duplicate class arrow.core.SequenceKt$zip$2$1 found in modules arrow-core-high-arity-jvm-1.2.4.jar -> arrow-core-high-arity-jvm-1.2.4 (io.arrow-kt:arrow-core-high-arity-jvm:1.2.4) and arrow-core-jvm-1.2.4.jar -> arrow-core-jvm-1.2.4 (io.arrow-kt:arrow-core-jvm:1.2.4)
     Duplicate class arrow.core.SequenceKt$zip$3$1 found in modules arrow-core-high-arity-jvm-1.2.4.jar -> arrow-core-high-arity-jvm-1.2.4 (io.arrow-kt:arrow-core-high-arity-jvm:1.2.4) and arrow-core-jvm-1.2.4.jar -> arrow-core-jvm-1.2.4 (io.arrow-kt:arrow-core-jvm:1.2.4)
     Duplicate class arrow.core.SequenceKt$zip$4$1 found in modules arrow-core-high-arity-jvm-1.2.4.jar -> arrow-core-high-arity-jvm-1.2.4 (io.arrow-kt:arrow-core-high-arity-jvm:1.2.4) and arrow-core-jvm-1.2.4.jar -> arrow-core-jvm-1.2.4 (io.arrow-kt:arrow-core-jvm:1.2.4)
     Duplicate class arrow.core.SequenceKt$zip$5$1 found in modules arrow-core-high-arity-jvm-1.2.4.jar -> arrow-core-high-arity-jvm-1.2.4 (io.arrow-kt:arrow-core-high-arity-jvm:1.2.4) and arrow-core-jvm-1.2.4.jar -> arrow-core-jvm-1.2.4 (io.arrow-kt:arrow-core-jvm:1.2.4)
     Duplicate class arrow.core.SequenceKt$zip$6$1 found in modules arrow-core-high-arity-jvm-1.2.4.jar -> arrow-core-high-arity-jvm-1.2.4 (io.arrow-kt:arrow-core-high-arity-jvm:1.2.4) and arrow-core-jvm-1.2.4.jar -> arrow-core-jvm-1.2.4 (io.arrow-kt:arrow-core-jvm:1.2.4)
     Duplicate class arrow.core.SequenceKt$zip$7$1 found in modules arrow-core-high-arity-jvm-1.2.4.jar -> arrow-core-high-arity-jvm-1.2.4 (io.arrow-kt:arrow-core-high-arity-jvm:1.2.4) and arrow-core-jvm-1.2.4.jar -> arrow-core-jvm-1.2.4 (io.arrow-kt:arrow-core-jvm:1.2.4)
     Duplicate class arrow.core.SequenceKt$zip$8$1 found in modules arrow-core-high-arity-jvm-1.2.4.jar -> arrow-core-high-arity-jvm-1.2.4 (io.arrow-kt:arrow-core-high-arity-jvm:1.2.4) and arrow-core-jvm-1.2.4.jar -> arrow-core-jvm-1.2.4 (io.arrow-kt:arrow-core-jvm:1.2.4)
     Duplicate class arrow.core.raise.RaiseKt found in modules arrow-core-high-arity-jvm-1.2.4.jar -> arrow-core-high-arity-jvm-1.2.4 (io.arrow-kt:arrow-core-high-arity-jvm:1.2.4) and arrow-core-jvm-1.2.4.jar -> arrow-core-jvm-1.2.4 (io.arrow-kt:arrow-core-jvm:1.2.4)
     Duplicate class arrow.core.raise.RaiseKt__RaiseAccumulateKt found in modules arrow-core-high-arity-jvm-1.2.4.jar -> arrow-core-high-arity-jvm-1.2.4 (io.arrow-kt:arrow-core-high-arity-jvm:1.2.4) and arrow-core-jvm-1.2.4.jar -> arrow-core-jvm-1.2.4 (io.arrow-kt:arrow-core-jvm:1.2.4)

Following doesn't fix it:

    implementation("io.arrow-kt:arrow-core-high-arity-jvm:1.2.4") {
        exclude group: "io.arrow-kt", module: "arrow-core-jvm"
    }
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