Using `3.3.0` dependencies and getting crash for s...
# koin
j
Using
3.3.0
dependencies and getting crash for some reason in release build......more in thread
đź‘€ 1
these are koin dependencies I'm using
Copy code
const val koinCore = "3.2.2"
    const val koinAndroid = "3.3.0"
    const val koinAndroidCompose = "3.3.0"

    val core = "io.insert-koin:koin-core:${Versions.koinCore}"
    val test = "io.insert-koin:koin-test:${Versions.koinCore}"
    val android = "io.insert-koin:koin-android:${Versions.koinAndroid}"
    val compose = "io.insert-koin:koin-androidx-compose:${Versions.koinAndroidCompose}"
I am using lifecycle
2.6.0-alpha03
so perhaps related to that (need that in project for other reasons).....if I revert back to Koin
3.2.2
then it's fine.
this seems like key part of crash
Copy code
11-19 16:07:25.797  5190  5190 E AndroidRuntime: Caused by: p8.e: |- No definition found for class:'androidx.lifecycle.a0'. Check your definitions!
11-19 16:07:25.797  5190  5190 E AndroidRuntime: 	at w8.a.q(Unknown Source:62)
11-19 16:07:25.797  5190  5190 E AndroidRuntime: 	at w8.a.p(Unknown Source:115)
11-19 16:07:25.797  5190  5190 E AndroidRuntime: 	at w8.a.o(Unknown Source:44)
11-19 16:07:25.797  5190  5190 E AndroidRuntime: 	at w8.a.g(Unknown Source:150)
11-19 16:07:25.797  5190  5190 E AndroidRuntime: 	at q5.a$a$b.a(Unknown Source:19)
11-19 16:07:25.797  5190  5190 E AndroidRuntime: 	at q5.a$a$b.i0(Unknown Source:4)
11-19 16:07:25.797  5190  5190 E AndroidRuntime: 	at q8.c.a(Unknown Source:67)
11-19 16:07:25.797  5190  5190 E AndroidRuntime: 	... 72 more
can be reproduced using https://github.com/joreilly/Confetti if you build/run with release and click in to session (that path uses
SavedStateHandle
logic so might be related to that....)
ah, looks like it might be same as https://github.com/InsertKoinIO/koin/issues/1468
Hmm, thought that seemed to be issue with 3.2.2 in that case as well (and possibly different crash)
a
Do you still use lifecycle
2.6.0-alpha03
?
koin-android 3.3 is using the 2.5 stable
I take a look at your project branch 👍
j
btw I reverted loin version update in Confetti until I had chance to look properly at it
a
j
hmm, using R8 and hadn't setup any particular proguard rules....will take a look and see
ok, confirmed that worked
a
interesting, I will check if I can avoid direct comparison with “named” class
197 Views