I upgraded from version 1.4.0 to version 1.5.0-rc0...
# compose-ios
d
I upgraded from version 1.4.0 to version 1.5.0-rc01 and the project stopped building:
👍 1
1
d
Sorry, but it doesn’t work. It did not help🙁
And the android started to crash after update
Copy code
Process: dev.musicapp, PID: 12184
                                                                            java.lang.NoSuchMethodError: No static method AnimatedContent(Ljava/lang/Object;Landroidx/compose/ui/Modifier;Lkotlin/jvm/functions/Function1;Landroidx/compose/ui/Alignment;Ljava/lang/String;Lkotlin/jvm/functions/Function4;Landroidx/compose/runtime/Composer;II)V in class Landroidx/compose/animation/AnimatedContentKt; or its super classes (declaration of 'androidx.compose.animation.AnimatedContentKt' appears in /data/app/~~zyqhwJRVqhc1Zt2GStV-ZA==/dev.musicapp-R7QnquJuDceBHZYYB7R7aw==/base.apk)
                                                                            	at moe.tlaster.precompose.navigation.NavHostKt.NavHost(NavHost.kt:135)
                                                                            	at moe.tlaster.precompose.navigation.NavHostKt$NavHost$6.invoke(Unknown Source:23)
p
Is crashing because a method not found which makes me think it compiled versus a library that has different version in compiled and runtime. Probably due to transitive dependency or consuming modules declaring different version explicitly. Make sure the dependency containing AnimatedContent is the same across all modules. I believe is in
compose.ui
. Ultimately, ensure the PreCompose version you are using was built with that same compose UI version
Also share what are the iOS build errors you are having
d
@Pablichjenkov Yes you are right. The problem is in PreCompose. Thanks a lot!
👍 1
p
Cool!