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?
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:
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?