https://kotlinlang.org logo
#compose-ios
Title
# compose-ios
i

Isaac

11/09/2023, 2:16 PM
I’ve tried everything I can but it’s not working. Has anyone experienced this before?
p

Pablichjenkov

11/09/2023, 2:23 PM
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

Konstantin Tskhovrebov

11/09/2023, 3:51 PM
what does Kdoctor say?
show an output
kdoctor -a -v
from your project root
i

Isaac

11/09/2023, 4:35 PM
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

Konstantin Tskhovrebov

11/09/2023, 4:56 PM
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

Isaac

11/09/2023, 6:06 PM
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
2 Views