Adam Brown
08/30/2022, 10:55 PMcomposeUi
module, and commonMain
includes the multiplatform compose artifacts. And I'm able to write desktop specific compose code inside my desktopMain
JVM source set, but then when I try to write some Android specific compose in the androidMain
source set, it doesn't know about the compose dependencies at all. Has anyone else run into this?sourceSets {
val commonMain by getting {
//@OptIn(org.jetbrains.compose.ExperimentalComposeLibrary::class)
dependencies {
api(project(":common"))
api(compose.runtime)
api(compose.uiTooling)
api(compose.preview)
api(compose.foundation)
api(compose.material)
//api(compose.material3)
api(compose.animation)
api(compose.animationGraphics)
api(compose.materialIconsExtended)
api("org.jetbrains.compose.ui:ui-util:$compose_version")
api("org.jetbrains.compose.ui:ui-text:$compose_version")
api("com.arkivanov.decompose:extensions-compose-jetbrains:$decompose_version")
api("com.darkrockstudios:richtexteditor:1.3.0")
}
}
val commonTest by getting {
dependencies {
implementation(kotlin("test"))
implementation("com.squareup.okio:okio-fakefilesystem:$okio_version")
}
}
val androidMain by getting {
dependencies {
}
}
val desktopMain by getting {
dependencies {
}
}
}
Arkadii Ivanov
08/31/2022, 12:05 AMAdam Brown
08/31/2022, 4:02 AMBoth artifact maps contains same key: C:/yy/xx/common/build/libs/common-desktop-1.0.0.jar with different values for kmp: [:common:desktopMain, :common:commonMain] and platform: [:common:desktopMain]
doesn't seem to be a common error from some initial searchingsettings.gradle
then the rest of it still worksMustafa Ozhan
08/31/2022, 9:11 AMBoth artifact maps contains same key:……
Javier
08/31/2022, 10:37 AMxxfast
09/29/2022, 10:14 AMArkadii Ivanov
09/29/2022, 10:17 AMJavier
09/29/2022, 10:18 AMandroidMain
), the IDE issue is gone.Arkadii Ivanov
09/29/2022, 10:23 AMJavier
09/29/2022, 10:25 AM