-
Notifications
You must be signed in to change notification settings - Fork 66
crash on Windows on JDK 17 and FileKit 0.13.0 #525
Copy link
Copy link
Open
Labels
nextScheduled for the next versionScheduled for the next version
Description
I'm using Oracle JDK 17.0.12 to build the application, and i'm encountered an error when launching:
io/github/vinceglb/filekit/dialogs/FileKitType$ImageAndVideo has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file version up to 61.0
OS: Windows 10
JDK: Oracle 17.0.12
Kotlin: 2.3.0
Compose: 1.10.1
FileKit: 0.13.0 (0.12.0 works fine)
Proguard: enabled with this rules for filekit:
-keep class com.sun.jna.** { *; }
-keep class * implements com.sun.jna.** { *; }Code:
val filePicker =
rememberFilePickerLauncher(type = FileKitType.ImageAndVideo, mode = FileKitMode.Multiple(10)) { files ->
files?.forEach { file ->
viewModel.addMedia(file.path)
}
}I can't use other or newer JDK because Compose doesn't work correctly with the touchscreen on Windows on other versions, and this is the primary use case.
Are there any possible solutions?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
nextScheduled for the next versionScheduled for the next version