Open SpaceXC opened 1 year ago
After much Googling, I was able to solve this by adding this block to the compose.desktop
config. Be aware that the version for this compiler is not the same as the one for Android...
compose.desktop {
compose {
kotlinCompilerPlugin.set("androidx.compose.compiler:compiler:1.5.10")
}
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
Describe the bug When I was trying to build a jar artifact in IDEA, I got this error. Full error log:
Affected platforms Select one of the platforms below:
If the bug is Android-only, report it in the Jetpack Compose tracker
Versions
To Reproduce Steps and/or the code snippet to reproduce the behavior:
Expected behavior An jar artifact should be built.
Screenshots Error log:
My artifact configuration:
Additional context I do see issue #1443. However, since I'm using a mac and I need to build an executable file for both Windows and macOS, I can't use compose desktop distributable builder via gradle, and I have problems on using Conveyor(Nothing happens when I click the exe file on windows), so I think building a jar file is probably the best solution for now. I also have changed several kotlin language and compose compiler versions, but that didn't solve the problem. Please let me know if you need further information.