Home > Mobile >  org.jetbrains.skiko.LibraryLoadException: Cannot find libskiko-macos-arm64.dylib.sha256, proper nati
org.jetbrains.skiko.LibraryLoadException: Cannot find libskiko-macos-arm64.dylib.sha256, proper nati

Time:11-29

I try to compile https://github.com/CuriousNikhil/k5-compose in IntelliJ (Apple-Silicon) on an M1 MacbookPro, I got the below error

Caused by: org.jetbrains.skiko.LibraryLoadException: Cannot find libskiko-macos-arm64.dylib.sha256, proper native dependency missing.
    at org.jetbrains.skiko.Library.load(Library.kt:71)
    at org.jetbrains.skiko.HardwareLayer.<clinit>(HardwareLayer.kt:10)

How can I solve this issue?

CodePudding user response:

In the build.gradle.kts of the project, change implementation(compose.desktop.currentOs) to implementation(compose.desktop.macos_arm64)

  • Related