jeziellago / compose-markdown

Markdown Text for Android Jetpack Compose 📋.
MIT License
563 stars 47 forks source link

java.lang.IllegalStateException: Unsupported #21

Closed JackuXL closed 2 years ago

JackuXL commented 2 years ago
java.lang.IllegalStateException: Unsupported
    at coil.util.-Utils.unsupported(Utils.kt:208)
    at coil.ImageLoader$Builder.availableMemoryPercentage(ImageLoader.kt:538)
    at dev.jeziellago.compose.markdowntext.MarkdownTextKt.createMarkdownRender(MarkdownText.kt:124)
    at dev.jeziellago.compose.markdowntext.MarkdownTextKt.MarkdownText-2NoNlqI(MarkdownText.kt:50)
    at space.technet.store.ui.activity.AppDetailActivity$onCreate$1$1$1.invoke(AppDetailActivity.kt:37)
    at space.technet.store.ui.activity.AppDetailActivity$onCreate$1$1$1.invoke(AppDetailActivity.kt:34)
JackuXL commented 2 years ago

My Code: MarkdownText("1")

Gradle: implementation "io.coil-kt:coil:2.0.0-rc03" implementation "io.coil-kt:coil-compose:2.0.0-rc03"

implementation 'com.github.jeziellago:compose-markdown:0.2.9'
eric-ampire commented 2 years ago

I've have the same issue

ohwittmannone commented 2 years ago

I'm also having the same issue, is there an update?

jeziellago commented 2 years ago

Hello folks, This error happens because Coil removed these methods.

     availableMemoryPercentage()
     bitmapPoolPercentage()

For a while, I will remove their usage, then it will use the default config.