79081186

Date: 2024-10-12 14:22:55
Score: 2
Natty:
Report link

Still did not worked for me. In android I am able load image but ios throws error

> Could not resolve all files for configuration ':composeApp:iosSimulatorArm64CompileKlibraries'.
   > Could not resolve io.coil-kt.coil3:coil-network-okhttp:3.0.0-rc01.

I am using compose multiplatform

here is my gradle

    sourceSets {
    
    androidMain.dependencies {
        implementation(compose.preview)
        implementation(libs.androidx.activity.compose)

        //material3
        implementation(libs.androidx.compose.material3)

        //ktor
        implementation(libs.ktor.client.android)

        //coil
        implementation("io.ktor:ktor-client-okhttp:3.0.0")
    }

    iosMain.dependencies {
        //ktor
        implementation(libs.ktor.client.darwin)

        //coil
        implementation("io.ktor:ktor-client-darwin:3.0.0")
    }


    commonMain.dependencies {
        implementation(compose.runtime)
        implementation(compose.foundation)
        implementation(compose.ui)
        implementation(compose.components.resources)
        implementation(compose.components.uiToolingPreview)
        implementation(libs.androidx.lifecycle.viewmodel)
        implementation(libs.androidx.lifecycle.runtime.compose)

        // material
        implementation(compose.material)
        implementation(compose.material3)

        // coil
        implementation("io.coil-kt.coil3:coil-compose:3.0.0-rc01")
        implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.0-rc01")

        //ktor
        implementation(libs.bundles.ktor)

        //coroutine
        implementation(libs.kotlinx.coroutines.core)

    }
}

Can any one tell what is wring here.

Reasons:
  • Blacklisted phrase (1): did not work
  • Whitelisted phrase (-1): worked for me
  • RegEx Blacklisted phrase (2.5): Can any one tell what
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Developer Ashh