jeziellago / compose-markdown

Markdown Text for Android Jetpack Compose 📋.
MIT License
596 stars 51 forks source link

Compose markdown with compose beta09 #7

Closed Vivecstel closed 3 years ago

Vivecstel commented 3 years ago

Hello,

Running the library with compose beta09 I get the following exception:

java.lang.NoSuchMethodError: No static method MarkdownText-eOtqqlQ(Ljava/lang/String;Landroidx/compose/ui/Modifier;JJLandroidx/compose/ui/text/style/TextAlign;ILjava/lang/Integer;Landroidx/compose/ui/text/TextStyle;Ljava/lang/Integer;Landroidx/compose/runtime/Composer;II)V in class Ldev/jeziellago/compose/markdowntext/MarkdownTextKt; or its super classes (declaration of 'dev.jeziellago.compose.markdowntext.MarkdownTextKt' appears in /data/app/~~SoanHzL-pOMen0_nur2dow==/com.steleot.jetpackcompose.playground-jtFyw48jPh71oDCViD88aA==/base.apk!classes16.dex)
        at com.steleot.jetpackcompose.playground.compose.externallibraries.ComposeMarkdownScreenKt.ComposeMarkdownExample(ComposeMarkdownScreen.kt:46)
        at com.steleot.jetpackcompose.playground.compose.externallibraries.ComposeMarkdownScreenKt.access$ComposeMarkdownExample(ComposeMarkdownScreen.kt:1)
        at com.steleot.jetpackcompose.playground.compose.externallibraries.ComposableSingletons$ComposeMarkdownScreenKt$lambda-1$1.invoke(ComposeMarkdownScreen.kt:32)
        at com.steleot.jetpackcompose.playground.compose.externallibraries.ComposableSingletons$ComposeMarkdownScreenKt$lambda-1$1.invoke(ComposeMarkdownScreen.kt:26)
        at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:116)
        at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:34)
        at androidx.compose.material.ScaffoldKt$ScaffoldLayout$1$1$1$bodyContentPlaceables$1.invoke(Scaffold.kt:316)
        at androidx.compose.material.ScaffoldKt$ScaffoldLayout$1$1$1$bodyContentPlaceables$1.invoke(Scaffold.kt:314)
        at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:107)
        at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:34)
        at androidx.compose.ui.layout.SubcomposeLayoutState$subcompose$2$1$1.invoke(SubcomposeLayout.kt:240)
        at androidx.compose.ui.layout.SubcomposeLayoutState$subcompose$2$1$1.invoke(SubcomposeLayout.kt:240)
        at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:107)
        at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:34)
        at androidx.compose.runtime.ComposerKt.invokeComposable(Composer.kt:3324)
        at androidx.compose.runtime.ComposerImpl$doCompose$2$5.invoke(Composer.kt:2575)
        at androidx.compose.runtime.ComposerImpl$doCompose$2$5.invoke(Composer.kt:2571)
        at androidx.compose.runtime.SnapshotStateKt.observeDerivedStateRecalculations(SnapshotState.kt:523)
        at androidx.compose.runtime.ComposerImpl.doCompose(Composer.kt:2564)
        at androidx.compose.runtime.ComposerImpl.composeContent$runtime_release(Composer.kt:2515)
        at androidx.compose.runtime.CompositionImpl.composeContent(Composition.kt:476)
        at androidx.compose.runtime.Recomposer.composeInitial$runtime_release(Recomposer.kt:727)
        at androidx.compose.runtime.ComposerImpl$CompositionContextImpl.composeInitial$runtime_release(Composer.kt:2978)
        at androidx.compose.runtime.CompositionImpl.setContent(Composition.kt:432)
        at androidx.compose.ui.layout.SubcomposeLayoutState.subcomposeInto(SubcomposeLayout.kt:258)
        at androidx.compose.ui.layout.SubcomposeLayoutState.access$subcomposeInto(SubcomposeLayout.kt:145)
        at androidx.compose.ui.layout.SubcomposeLayoutState$subcompose$2.invoke(SubcomposeLayout.kt:233)
        at androidx.compose.ui.layout.SubcomposeLayoutState$subcompose$2.invoke(SubcomposeLayout.kt:230)
        at androidx.compose.runtime.snapshots.SnapshotStateObserver.withNoObservations(SnapshotStateObserver.kt:140)
        at androidx.compose.ui.node.OwnerSnapshotObserver.withNoSnapshotReadObservation$ui_release(OwnerSnapshotObserver.kt:49)
        at androidx.compose.ui.node.LayoutNode.withNoSnapshotReadObservation$ui_release(LayoutNode.kt:1084)
        at androidx.compose.ui.layout.SubcomposeLayoutState.subcompose(SubcomposeLayout.kt:230)
        at androidx.compose.ui.layout.SubcomposeLayoutState.subcompose(SubcomposeLayout.kt:225)
jeziellago commented 3 years ago

Hi @Vivecstel 👋🏻 Thanks for reporting! I fixed that in v0.2.3