Hey folks When I run KMP project on Android api 21...
# multiplatform
h
Hey folks When I run KMP project on Android api 21 & 23 the app crashes and says: java.lang.NoClassDefFoundError: io.ktor.util.collections.ConcurrentMap$$ExternalSyntheticLambda0 It seems it’s because of the Ktor that is not compatible with older Android versions. How can I fix it?
m
Looks like this: https://youtrack.jetbrains.com/issue/KTOR-4751, you'll need to enable desugaring for your Android app
h
After enabling desugaring the project does not build any more and shows this error. Do you have any idea to fix it?
m
What error?
h
Sorry I forgot to upload the image
m
This view is filtering out the logs. You'll have to build from the command line or focus the top-level item (build Bama KMM failed) to get the actual error
h
By updating gradle version to 8.3 & 8.1.2 it fixed, thank you
👍 1
107 Views