Closed ElementalistBTG closed 1 month ago
It's because of this issue in skiko. I have created a PR to make it run on older versions of windows, although I'm not entirely sure it will go back to win 7.
Your changes worked for me. 👍
Tested on Windows 7, build 7601
Should be fixed on latest 1.2.0 releases
Still has error in Windows 7, it seems to be an issue related to Skiko. The log you provided is as follows: Is there any solutions?
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program Files\Note\app\skiko-windows-x64.dll: Can't find dependent libraries at java.base/jdk.internal.loader.NativeLibraries.load(Native Method) at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open( Unknown Source) at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(Unknown Sou rce) at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(Unknown Sou rce) at java.base/java.lang.ClassLoader.loadLibrary(Unknown Source) at java.base/java.lang.Runtime.load0(Unknown Source) at java.base/java.lang.System.load(Unknown Source) at org.jetbrains.skiko.Library.loadLibraryOrCopy(Library.kt:20) at org.jetbrains.skiko.Library.findAndLoad(Library.kt:85) at org.jetbrains.skiko.Library.load(Library.kt:59) at org.jetbrains.skia.impl.Library$Companion.staticLoad(Library.jvm.kt:1 2) at androidx.compose.ui.ConfigureSwingGlobalsForCompose_desktopKt.configu reSwingGlobalsForCompose(ConfigureSwingGlobalsForCompose.desktop.kt:49) at androidx.compose.ui.ConfigureSwingGlobalsForCompose_desktopKt.configu reSwingGlobalsForCompose$default(ConfigureSwingGlobalsForCompose.desktop.kt:38) at androidx.compose.ui.window.Application_desktopKt.application(Applicat ion.desktop.kt:110) at androidx.compose.ui.window.Application_desktopKt.application$default( Application.desktop.kt:105) at MainKt.main(main.kt:26) at MainKt.main(main.kt) Failed to launch JVM Child process exited with code 1
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
When creating a Desktop App using the latest plugins for kotlin and jetpack compose plugins { kotlin("jvm") version "1.6.10" id("org.jetbrains.compose") version "1.1.1" } i get the error: Failed to load JVM on Windows 7 machine and the app doesn't start. This error doesn't exist on Windows 10 (app works just fine) . I tried downgrading to plugins { kotlin("jvm") version "1.5.31" id("org.jetbrains.compose") version "1.0.0" } and the error disappeared but now i have a bug that was fixed on compose version 1.1.0-alpha04 that i cannot work around.
Also, i cannot find anywhere where to put the suppressKotlinVersionCompatibilityCheck to check if my App will run on Windows 7 when i have compose version 1.1.0-alpha04