Kamel-Media / Kamel

Kotlin asynchronous media loading and caching library for Compose.
Apache License 2.0
595 stars 23 forks source link

Kamel with Ktor 2.0.0-beta-1 triggers a NoClassDefFoundError for Desktop app #13

Closed cmota closed 2 years ago

cmota commented 2 years ago

Hello,

I was using Kamel with Ktor 2.0.0-beta-1 and when building the Desktop client I've had this error:

Reason=java.lang.NoClassDefFoundError: io/ktor/client/features/BodyProgressKt

This seems to happen due to the different packaging that Ktor had when upgrading to the major version 2.0.

I've fixed it locally, and there's an upcoming PR for it 🙂

Edit: I've updated the PR to ktor 2.0.0