https://kotlinlang.org logo
Title
p

PHondogo

08/14/2022, 9:13 PM
Hello! I've created compose application for Android and desktop. While on desktop it is running with no problem, for Android I've got
Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.compose.material.icons.outlined.ArrowCircleLeftKt"
Both targets have dependency for extended material icons. What may be the problem?
j

james

08/14/2022, 11:06 PM
it could be that R8 is erroneously thinking that
ArrowCircleLeftKt
is unused, and so is removing it during minification does the error occur with and without minification?
p

PHondogo

08/15/2022, 8:26 AM
Error also occurs without minification.
y

Yves Kalume

08/17/2022, 8:13 AM
Try to update your proguard rules, or add
@Keep
annotation on the
ArrowCircleLeftKt
class. for more information check this link https://developer.android.com/studio/build/shrink-code#usage