Closed YuXunSTC closed 1 month ago
@YuXunSTC please provide a small reproducible example demonstrating this bug
I've got the same issue but can't find something helpful. I upgrade to Kotlin 2.0.0 and Compose 1.6.11 and to the new compose directory structure. Could it be because another dependency?
@ThraaxSession It could be another dependency for sure. It took me a whole day of troubleshooting, it turns out some of the Kotlin/Native dependencies I had didn't support Kotlin 2.0.0, so I had to eliminate my code file by file until I pointed out the exact line of code that's causing the issue. It's a lot of work but it's worth it. My issue particularly was with kamel
image loading library.
@yuroyami did you use any tool for debugging? How did your exactly figure it out? I also assume it's a dependency which might use legacy APIs. But the stacktrace it worthless. :/
@ThraaxSession The stack trace was so unhelpful that I had to clone my project elsewhere and isolate the problem by progressively removing code. I started by deleting half of the least interdependent code. If the code still didn't compile, I would delete half of the remaining code, and so on, until it's narrowed down.
@kropp could you take it with you to improve the stacktrace? IR Stacktrace is a runtime issue, right?
Same issue here, but I don't have any thirdparty dependecies except of androidx-activity
:
[versions]
agp = "8.3.2"
kotlin = "2.0.0"
jetbrains-compose = "1.7.0-alpha02"
android-minSdk = "24"
android-targetSdk = "34"
androidx-activity = "1.9.1"
[libraries]
androidx-activity-ktx = { group = "androidx.activity", name = "activity-ktx", version.ref = "androidx-activity" }
androidx-activity-compose = { group = "androidx.activity", name = "activity-compose", version.ref = "androidx-activity" }
[plugins]
androidApplication = { id = "com.android.application", version.ref = "agp" }
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
kotlin-compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
jetbrains-compose = { id = "org.jetbrains.compose", version.ref = "jetbrains-compose" }
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 run my app with desktop, desktopRun -DmainClass=MainKt --quiet ,it build failed
Affected platforms just desktop
Versions