mikepenz / multiplatform-markdown-renderer

Markdown renderer for Kotlin Multiplatform Projects (Android, iOS, Desktop), using Compose.
https://mikepenz.github.io/multiplatform-markdown-renderer/
Apache License 2.0
429 stars 27 forks source link

Using this in a pure JVM desktop project and got a render error #233

Closed GoldTest closed 6 days ago

GoldTest commented 6 days ago

log:

Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: 'void androidx.compose.runtime.Composer.startReplaceGroup(int)' at com.mikepenz.markdown.model.MarkdownPaddingKt.markdownPadding-Jo9jhoo(MarkdownPadding.kt) at com.mikepenz.markdown.compose.MarkdownKt.Markdown(Markdown.kt:41)

only got @ComposeCompilerApi fun startReplaceableGroup(key: Int) in the Composer class,didnot see the startReplaceGroup.

Anyone help?

mikepenz commented 6 days ago

This project uses Compose-Multiplatform 1.7.0. Please make sure your project uses the same version.

GoldTest commented 6 days ago

This project uses Compose-Multiplatform 1.7.0. Please make sure your project uses the same version.

It works after i upgrade the compose version.Thank you for answering.