Hi! I am trying to integrate compose into a large ...
# compose
r
Hi! I am trying to integrate compose into a large monorepo + multi-module app (I have what I want on a separate compose project that works fine). I have migrated to kotlin 1.4.2 and also updated the compiler to use IR. The app compiles, but it crashes in runtime with a class not found exception.
java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/lifecycle/ViewTreeLifecycleOwner
I updated the dependencies to use
androidx.lifecycle:lifecycle-common-java8
instead of
androidx.lifecycle:lifecycle-compiler
and
androidx.lifecycle:lifecycle-common
but the crash is still happening. Any ideas of what can I be missing?
a
It's in the
lifecycle-runtime
module
r
I think I have it as implementation, but I’ll double check. Thanks
mmm, I had that as a forced resolution strategy, but not as implementation at the application module, so I just added it and I’ll try again
it is still crashing, it probably something wrong with the modules dependencies graph (it is quite complex, too many modules) But at least I know what to look for
z
Raul! 👋