Hi everybody,
I’ve been using Kotlin/Android for a while, but I’m new with Kotlin Multiplattform. Could someone point me to instructions for adding Android-specific runtime dependencies to my project?
I’m trying to add Skiko; it compiles, but fails at runtime with an
UnsatisfiedLinkError
for libskiko-android-arm64.so. I added
skiko = { module = "org.jetbrains.skiko:skiko", version = "0.7.89.1" }
to my libs.versions.toml, and
implementation(_libs_._skiko_)
to my
androidMain.dependencies
source-set. Is there something extra I need to add to my packaging so that it will find the library at runtime?
l
Laxystem
02/12/2024, 7:13 AM
You'll find android-only libraries in the
androidMain
source set only. Btw, isn't skiko multiplatform, that is, needs to be added to
I now did a equivalent implementation, but of course the results differ a bit. The scaled bitmap on Android is not the same pixels as skiko produces. So Ashampoo Photos has different results for pHash calculation on Android. 😕