Alex Barcelo
02/11/2021, 6:25 PMactivity-compose? When calling NavHost(…) the app crashs with java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/activity/compose/LocalOnBackPressedDispatcherOwner;. I added the following dependency to my project:
implementation("androidx.activity:activity-compose:1.3.0-alpha02")
and not it seems to work smoothlyIan Lake
02/11/2021, 6:29 PMactivity-compose:1.3.0-alpha02 to get it working, yes.Ian Lake
02/11/2021, 6:30 PMAlex Barcelo
02/11/2021, 6:37 PMnavigation-compose and not much with using libraries compiled with an unstable release of Kotlin (after upgrading project to a stable version). Thanks!Ian Lake
02/11/2021, 6:41 PMnavigation-compose depends on the broken activity-compose:1.3.0-alpha01. By updating the alpha02, you're using what navigation-compose expected all alongIan Lake
02/11/2021, 6:41 PMLocalOnBackPressedDispatcherOwner and related APIs