Jacob Ras
01/03/2025, 11:56 PMType org.koin.ksp.generated.KoinDefAndroidxLifecycleDefaultLifecycleObserver is defined multiple times
I see that in two modules' KoinMeta-[number].txt
files there's indeed this line twice:
public class KoinDefAndroidxLifecycleDefaultLifecycleObserver
But now what? When I run gradlew :app:dependencies
I see that everything is using (or bumped to) Lifecycle 2.8.7.Jacob Ras
01/03/2025, 11:56 PMType org.koin.ksp.generated.KoinDefAndroidxLifecycleDefaultLifecycleObserver is defined multiple times: H:\Ras BV\notes\component\purchases\build\.transforms\dbeaa89d56d413b01fe6de19a6cb2af2\transformed\bundleLibRuntimeToDirDebug\bundleLibRuntimeToDirDebug_dex\org\koin\ksp\generated\KoinDefAndroidxLifecycleDefaultLifecycleObserver.dex, H:\Ras BV\notes\component\security\build\.transforms\8e22201e3ee8b0193d459c405b136be2\transformed\bundleLibRuntimeToDirDebug\bundleLibRuntimeToDirDebug_dex\org\koin\ksp\generated\KoinDefAndroidxLifecycleDefaultLifecycleObserver.dex
Jacob Ras
01/03/2025, 11:58 PMJacob Ras
01/04/2025, 10:47 AMJacob Ras
01/04/2025, 10:57 AMJacob Ras
01/04/2025, 11:54 AMA
and B
have the observer internally instead of exposed as a type.
(Something like this: private val observer = object : DefaultLifecycleObserver { /** Code here. */ }
).
I updated the issue with this workaround/fix (it's nicer to not unnecessarily expose that interface anyway).