1.7.3-alpha01 crashes on Android
armond-avanes opened this issue · comments
I'm using Kottie (1.7.3-alpha01) on the first page of my CMP app. When I launch the app on Android emulator, it crashes with the following stack trace in LogCat:
java.lang.NoSuchMethodError: No static method LottieAnimation(Lcom/airbnb/lottie/LottieComposition;Lkotlin/jvm/functions/Function0;Landroidx/compose/ui/Modifier;ZZZLcom/airbnb/lottie/RenderMode;ZLcom/airbnb/lottie/compose/LottieDynamicProperties;Landroidx/compose/ui/Alignment;Landroidx/compose/ui/layout/ContentScale;ZLjava/util/Map;Lcom/airbnb/lottie/AsyncUpdates;Landroidx/compose/runtime/Composer;III)V in class Lcom/airbnb/lottie/compose/LottieAnimationKt; or its super classes (declaration of 'com.airbnb.lottie.compose.LottieAnimationKt' appears in /data/app/~~jA2DmH8vhPvktafqezBeIA==/com.test-s7lHTnlE1Jc0jI5tGn_ivQ==/base.apk!classes16.dex)
at KottieAnimation_androidKt.KottieAnimation-ww6aTOc(kottieAnimation.android.kt:15)
It works fine on Desktop, WASM and iOS.
I noticed that you use Lottie 6.3.0
as part of your dependencies. So I tried to upgrade to 6.4.0
(latest version) but it didn't help. Still the same error.
Nevermind. That was because of another library I was using. Some kind of version conflict.