-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't compile with Kotlin 2.1.0 #786
Comments
Hi griffinsorrentino, would you be able to show a simple example of how to force packed libs in a KMM project? I'm trying to apply the configuration without luck. |
The configuration I believe is only for plugins, you can add |
Thank you. Unfortunately I get the same FileNotFound error with and with kotlin.internal.klibs.non-packed=false the whole project falls apart because of broken imports. @Alex009 is there any chance for any work-in-progress snapshot soon that would fix it? |
fix will be in 0.24.4 |
@Alex009 Thank you for your swift resolution on this! |
With Kotlin 2.1.0, the new default is to generate non-packed klib files
https://kotlinlang.org/docs/whatsnew21.html#support-for-non-packed-klibs
This is causing a
FileNotFoundException (Is a directory)
error because the klib file attempting to be unzipped is an unpacked klib directory and not a .klib fileThe error is linked to this function
moko-resources/resources-generator/src/main/kotlin/dev/icerock/gradle/utils/ZipUtils.kt
Lines 13 to 20 in 2c48480
File structure in Kotlin 2.0.21:
File structure in Kotlin 2.1.0:
Workaround:
As a temporary workaround, you can change back to packed libs - https://kotlinlang.org/docs/whatsnew21.html#how-to-set-up-your-project
Although using unpacked for the performance improvement (even if very minor) would be the ideal end goal
The text was updated successfully, but these errors were encountered: