'org.jetbrains.skiko.LibraryLoadException: Cannot find libskiko-macos-arm64.dylib.sha256, proper native dependency missing
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?
Solution 1:[1]
In the build.gradle.kts of the project, change implementation(compose.desktop.currentOs) to implementation(compose.desktop.macos_arm64)
Solution 2:[2]
I had a same error today on Intel x64 iMac, and solved by upgrading plugins version.
kotlin("jvm") from 1.5.31 to 1.6.10 and id("org.jetbrains.compose") from 1.0.0 to 1.1.1
FYI, it worked fine a month ago.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Konstantin Annikov |
| Solution 2 | khcpietro |
