I’ve tried everything I can but it’s not working. ...
# compose-ios
i
I’ve tried everything I can but it’s not working. Has anyone experienced this before?
p
Sounds like it didn't pull the kotlin native runtime binaries. Open and close Android Studio, refresh dependencies, invalidate caches and restart. Are you under some sort of VPN or protected network? Did you setup maven urls appropriately? What happens if you try the official template project?
k
what does Kdoctor say?
show an output
kdoctor -a -v
from your project root
i
thisis what it says @Konstantin Tskhovrebov
@Pablichjenkov refreshing dependencies fails with the same error
Copy code
> Task :shared:compileKotlinIosArm64 FAILED
e: Could not find "org.jetbrains.compose.runtime:runtime" in [/Users/dev/Golly_Express_KMM, /Users/dev/.konan/klib, /Users/dev/.konan/kotlin-native-prebuilt-macos-aarch64-1.9.20/klib/common, /Users/dev/.konan/kotlin-native-prebuilt-macos-aarch64-1.9.20/klib/platform/ios_arm64]
I’ve also restarted and invalidated caches. No VPN. Here is my
settings.gradle.kts
setup
Copy code
pluginManagement {
    repositories {
        google()
        gradlePluginPortal()
        mavenCentral()
        maven("<https://maven.pkg.jetbrains.space/public/p/compose/dev>")
        maven("<https://androidx.dev/storage/compose-compiler/repository>")

    }
}

dependencyResolutionManagement {
    repositories {
        google()
        mavenCentral()

        maven("<https://maven.pkg.jetbrains.space/public/p/compose/dev>")
    }
}
k
I don't see compose multiplatform gradle plugin in your project
👆 1
You could try to generate a new project here https://terrakok.github.io/Compose-Multiplatform-Wizard/ And compare the configs
i
I’m getting a new error now @Konstantin Tskhovrebov
Could not find "org.jetbrains.compose.runtime:runtime-saveable"
the solutions I’m seeing on the internet seem to be outdated
I tried
kotlin.native.cacheKind=none
Fixed. I had to add the runtimeSaveable dependency
🆗 1