https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
l

Lito Bumba

12/08/2023, 7:49 PM
Hello! Everyone has someone taken this error message ? The error message: Could not find “org.jetbrains.compose.material:material” in [/Users/cazombobumba/AndroidStudioProjects/CingamiApp, /Users/cazombobumba/.konan/klib, /Users/cazombobumba/.konan/kotlin-native-prebuilt-macos-aarch64-1.9.20/klib/common, /Users/cazombobumba/.konan/kotlin-native-prebuilt-macos-aarch64-1.9.20/klib/platform/ios_simulator_arm64] it happens when build the iOS version using Compose Multiplatform The Android version is working so well The iOS version worked in the begin
a

Andrew Watson

12/08/2023, 7:59 PM
oooh, I think I just encountered this in one of my modules
Basically I had to make sure this was my commonMain deps:
Copy code
sourceSets {
        commonMain.dependencies {
            implementation(compose.runtime)
            implementation(compose.foundation)
            implementation(compose.material)
            implementation(compose.foundation)
            implementation(compose.ui)
            @OptIn(org.jetbrains.compose.ExperimentalComposeLibrary::class)
            implementation(compose.components.resources)
        }
    }
4 Views