Starting with Android Studio Electric Eel Canary 1...
# android-studio
m
Starting with Android Studio Electric Eel Canary 10, i start gettting this error
Copy code
Both artifact maps contains same key: /Users/mustafa.ozhan/Projects/Personal/CurrencyConverterCalculator/CCC2/backend/build/libs/backend-jvm-0.0.1537.jar with different values for kmp: [:backend:jvmMain, :backend:commonMain] and platform: [:backend:main]
my build gradle for the relavant
backend
module is in the thread Is anyone knows how to solve it ?
Copy code
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile


plugins {
    with(Dependencies.Plugins) {
        application
        kotlin(MULTIPLATFORM)
    }
}

with(ProjectSettings) {
    application {
        mainClass.set("$PROJECT_ID.backend.ApplicationKt")
    }
    group = PROJECT_ID
    version = getVersionName(project)
}

kotlin {
    jvm {
        withJava()
    }

    @Suppress("UNUSED_VARIABLE")
    sourceSets {
        val jvmMain by getting {
            dependencies {
                with(Dependencies.JVM) {
                    implementation(KTOR_CORE)
                    implementation(KTOR_NETTY)
                    implementation(LOG_BACK)
                }

                with(Dependencies.Common) {
                    implementation(KOIN_CORE)
                    implementation(LOG_MOB)
                }

                with(Dependencies.Modules) {
                    implementation(project(COMMON))
                }
            }
        }
    }
}

tasks.register<Jar>("fatJar") {
    archiveBaseName.set("${project.name}-fat")
    manifest {
        attributes["Implementation-Title"] = "Gradle Jar File Example"
        attributes["Implementation-Version"] = ProjectSettings.getVersionName(project)
        attributes["Main-Class"] = "${ProjectSettings.PROJECT_ID}.backend.ApplicationKt"
    }
    from(
        configurations.runtimeClasspath.get().map {
            it.takeIf { it.isDirectory } ?: zipTree(it)
        }
    )
    with(tasks.jar.get() as CopySpec)
    duplicatesStrategy = DuplicatesStrategy.INCLUDE
}

@Suppress("UnstableApiUsage")
tasks.named<ProcessResources>("jvmProcessResources") {
    duplicatesStrategy = DuplicatesStrategy.INCLUDE
}

tasks.withType<KotlinCompile> {
    kotlinOptions {
        jvmTarget = JavaVersion.VERSION_1_8.toString()
    }
}
e
m
Yeap did it already ­čÖé okay will turn on the notifications fir the issue you open ­čÖé