You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After I add implementation("io.github.vinceglb:filekit-compose:0.8.8") to my build.gradle, I get this when I run it:
Exception in thread "main" java.lang.NoSuchMethodError: 'void androidx.compose.ui.window.Application_desktopKt.application$default(boolean, kotlin.jvm.functions.Function3, int, java.lang.Object)'
Gradle builds properly, but the app no longer runs. I immediately get this error. The non-compose version doesn't cause this error. With the non-compose version, Gradle builds and the app still runs. I didn't try to actually implement it, since I'm using compose, but it at least does not cause this error to immediately occur.
I was able to fix this by adding implementation("androidx.compose.ui:ui:1.7.6), which would likely already be there if I was building for Android. But my project is using KMM but is only building a server-side app, so I'm only importing the desktop compose stuff.
After adding that implementation I get this error:
Exception in thread "main" kotlin.NotImplementedError: Implemented only in JetBrains fork. Please use org.jetbrains.compose.runtime:runtime package instead.
Exception in thread "main" kotlin.NotImplementedError: Implemented only in JetBrains fork. Please use org.jetbrains.compose.ui:ui-util package instead.
I added implementation("org.jetbrains.compose.ui:ui-util:1.7.3"), but am still getting this error. (I'm sure there's something I need to remove that is conflicting - like it was with androidx.compose.ui:ui:1.7.6 and implementation(compose.ui) - but I'm not sure what to remove.)
TLDR; I still can't get the compose version to work without Android
The text was updated successfully, but these errors were encountered:
After I add
implementation("io.github.vinceglb:filekit-compose:0.8.8")
to my build.gradle, I get this when I run it:Exception in thread "main" java.lang.NoSuchMethodError: 'void androidx.compose.ui.window.Application_desktopKt.application$default(boolean, kotlin.jvm.functions.Function3, int, java.lang.Object)'
Gradle builds properly, but the app no longer runs. I immediately get this error. The non-compose version doesn't cause this error. With the non-compose version, Gradle builds and the app still runs. I didn't try to actually implement it, since I'm using compose, but it at least does not cause this error to immediately occur.
I was able to fix this by adding
implementation("androidx.compose.ui:ui:1.7.6)
, which would likely already be there if I was building for Android. But my project is using KMM but is only building a server-side app, so I'm only importing the desktop compose stuff.After adding that implementation I get this error:
Exception in thread "main" kotlin.NotImplementedError: Implemented only in JetBrains fork. Please use
org.jetbrains.compose.runtime:runtimepackage instead.
To get rid of this, I had to add
implementation("androidx.compose.ui:ui:1.7.6")
and remove
implementation(compose.ui)
I added a few more to get rid of other errors:
But I left off at this error:
Exception in thread "main" kotlin.NotImplementedError: Implemented only in JetBrains fork. Please use
org.jetbrains.compose.ui:ui-utilpackage instead.
I added
implementation("org.jetbrains.compose.ui:ui-util:1.7.3")
, but am still getting this error. (I'm sure there's something I need to remove that is conflicting - like it was withandroidx.compose.ui:ui:1.7.6
andimplementation(compose.ui)
- but I'm not sure what to remove.)TLDR; I still can't get the compose version to work without Android
The text was updated successfully, but these errors were encountered: