I'm encountering an error when I trying to compile...
# compose
t
I'm encountering an error when I trying to compile. I've pulled in another multi-platform library and it complains about duplicate library names. The project implements some interfaces in its shared module that are defined in the library shared module. It gives a NPE crash. I'll attached the crash to this thread. Any insight into this issue?
duplicate library name: sqldelight-coroutines-extensions_commonMain duplicate library name: runtime_commonMain
s
Make sure you have added Compose runtime as a dependency for that module
t
I have dependencies in commonMain for
Copy code
implementation(compose.runtime)
implementation(compose.foundation)
implementation(compose.material)
and iosMain depends on it
Copy code
val iosMain by creating {
    dependsOn(commonMain)
    iosX64Main.dependsOn(this)
    iosArm64Main.dependsOn(this)
    iosSimulatorArm64Main.dependsOn(this)
    dependencies {
        api(libs.ktor.client.ios)
        implementation(libs.sqldelight.native)
    }
}
Shouldn't that be good?
s
Yeah, that should be enough It seems like compose cannot find annotation class for some reason
t
I'll see if I can create a sample app and I'll open a ticket
w
👋 Im starting to run into this issue as well, were you able to solve it @Trey?
t
I did get past it, but I'm struggling to remember the fix. I went through several iterations. I was using a composite build and I think I switched to just a straight dependency. I also changed the name of a couple of the Android directories as recommended in the most recent upgrade instructions. I'm using the latest version of all the libraries too. The bug may have been resolved with a newer version.