Skip to content

Duplicate class org.reduxkotlin.threadsafe.CreateThreadSafeStoreKt #148

@SylvainHocq

Description

@SylvainHocq

Hi i have an error during the buid of my app, when i try to migrate from version 0.5.5 to 0.6.0 (which it seem to be necessary to migrate from kotlin 1.7 to kotlin 1.8)

`Execution failed for task ':app:checkDebugDuplicateClasses'.

A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
Duplicate class org.reduxkotlin.threadsafe.CreateThreadSafeStoreKt found in modules jetified-redux-kotlin-threadsafe-debug-runtime (org.reduxkotlin:redux-kotlin-threadsafe-android-debug:0.6.0) and jetified-redux-kotlin-threadsafe-jvm-0.6.0 (org.reduxkotlin:redux-kotlin-threadsafe-jvm:0.6.0)
Duplicate class org.reduxkotlin.threadsafe.CreateThreadSafeStoreKt$createTypedThreadSafeStore$$inlined$asTyped$1 found in modules jetified-redux-kotlin-threadsafe-debug-runtime (org.reduxkotlin:redux-kotlin-threadsafe-android-debug:0.6.0) and jetified-redux-kotlin-threadsafe-jvm-0.6.0 (org.reduxkotlin:redux-kotlin-threadsafe-jvm:0.6.0)`

in the build.gradle of my app :
dependencies { .... implementation "org.reduxkotlin:redux-kotlin-threadsafe-jvm:0.6.0" .... }

in the build.gradle of my shared module :
`kotlin {
android()

val xcf = XCFramework()
listOf(
    iosX64(),
    iosArm64(),
).forEach {
    it.binaries.framework {
        baseName = "shared"
        xcf.add(this)
    }
}

sourceSets {
    val commonMain by getting {
        dependencies {
            ...
            implementation("org.reduxkotlin:redux-kotlin-threadsafe:0.6.0")
            ...` 

I think the problem come from my configuration.
I would appreciate some help.
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions