svenjacobs
05/15/2024, 8:23 AM2.8.0
and now get a crash right when the app starts. Anyone else?
java.lang.IllegalStateException: CompositionLocal LocalLifecycleOwner not present
tomoya0x00
05/15/2024, 8:27 AMsvenjacobs
05/15/2024, 8:29 AM2.8.0
can only be used with Compose UI 1.7.0
which however is still beta 😬harry248
05/15/2024, 11:12 AMStylianos Gakis
05/15/2024, 11:31 AMsvenjacobs
05/15/2024, 11:33 AMLocalLifecycleOwner
before with Lifecycle 2.7.0
so I wouldn’t even know where to start 🤷🏼 I just wait for Compose UI 1.7.0
.Stylianos Gakis
05/15/2024, 11:35 AMCompositionLocalProvider(new.package.LocalLifecycleOwner provides old.package.LocalLifecycleOwner.current)
Just like you'd provide any composition localStylianos Gakis
05/15/2024, 11:36 AMsvenjacobs
05/15/2024, 11:41 AMLocalLifecycleOwner
has been moved from Compose UI to lifecycle-runtime-compose
so that its Compose-based helper APIs can be used outside of Compose UI.
so it didn’t even come to my mind that the package was moved. I thought it was only moved to a new module.
Also it would have been nice if they mentioned the incompatibility with Compose UI 1.6
there because I usually don’t follow every alpha and beta release.Stylianos Gakis
05/15/2024, 11:46 AMsvenjacobs
05/15/2024, 12:00 PM“was moved” implies that there are now two of them of course.I guess they could have moved
LocalLifecycleOwner
to a new artifact / module under the same package and it would have worked unless other dependencies still depend on 2.7.0
. Then we probably would get a compilation error because of multiple classes in the classpath 🤷🏼
Either way, thanks for your workaround. But I rather wait for Compose UI 1.7.0
as there is nothing in Lifecycle 2.8.0
that I desperately need.Stylianos Gakis
05/15/2024, 12:15 PMsvenjacobs
05/15/2024, 12:25 PMandroidx.*
package names although they might not even develop for Android 🤪Stylianos Gakis
05/15/2024, 12:27 PMagrosner
05/15/2024, 9:25 PM