gradle KMP:线程“main”中出现异常java.lang.UnsatisfiedLinkError:'void org.jetbrains.skia.CanvasKt._nTranslate(long,float,float)'

envsm3lx  于 2023-08-06  发布在  Java
关注(0)|答案(1)|浏览(102)

我的桌面编写应用程序不再在IDE中或通过gradle运行(失败并出现错误)。它已经几个月以来,我最后一次接触的项目和应用程序运行正常。我不知道这个项目是怎么搞成这样的。
build.gradle.kts插件版本:

plugins {
    kotlin("multiplatform") version "1.8.20"
    id("org.jetbrains.compose") version "1.4.1"
    id("io.realm.kotlin") version "1.7.1"
}

字符串
错误:

Exception in thread "main" java.lang.UnsatisfiedLinkError: 'void org.jetbrains.skia.CanvasKt._nTranslate(long, float, float)'
    at org.jetbrains.skia.CanvasKt._nTranslate(Native Method)
    at org.jetbrains.skia.CanvasKt.access$_nTranslate(Canvas.kt:1)
    at org.jetbrains.skia.Canvas.translate(Canvas.kt:1085)
    at androidx.compose.ui.graphics.SkiaBackedCanvas.translate(SkiaBackedCanvas.skiko.kt:85)
    at androidx.compose.ui.graphics.drawscope.CanvasDrawScopeKt$asDrawTransform$1.inset(CanvasDrawScope.kt:763)
    at androidx.compose.ui.graphics.painter.Painter.draw-x_KDEd0(Painter.kt:218)
    at androidx.compose.ui.graphics.painter.Painter.draw-x_KDEd0$default(Painter.kt:185)
    at androidx.compose.ui.graphics.PainterImage.asBitmap(DesktopImageConverters.desktop.kt:164)
    at androidx.compose.ui.graphics.PainterImage.getResolutionVariant(DesktopImageConverters.desktop.kt:151)

xoefb8l8

xoefb8l81#

id("org.jetbrains.compose") version "1.5.0-dev1114"

字符串
幸好修好了

相关问题