Hello! Everyone has someone taken this error mess...
# multiplatform
l
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
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)
        }
    }
m
Hi, have you found a solution for?
a
Yes, but I'm trying to remember what fixed it
I think it's just making sure all of the versions are aligned - using correctly kotlin version number, compiler, etc
m
Hi Andrew, are you using material3 in your project?
a
ohh, no I'm not
Although I am pulling in the dependency in some modules
m
Hi there, posting here for future research. I just created a new KMP project and now it's come with 1.60 jetbrains compose plugin and other configs that I didn't have in my older project. I tested material3 and now it's working. I'm going to migrate my project soon.
Thank you for helping Andrew
a
For sure! Glad it just magically worked 🙂