https://kotlinlang.org logo
#kodein
Title
# kodein
y

Yannick

06/28/2022, 4:20 PM
Did anyone get this error when building with minifyEnabled (Kodein 7.12.0)
Copy code
Caused by: java.lang.RuntimeException: Invalid TypeToken; must specify type parameters
        at org.kodein.type.TypeReference.<init>(Unknown Source:40)
        at tb.b.<init>(Unknown Source:0)
        at tb.n.invoke(Unknown Source:19)
        at tb.a0.invoke(SourceFile:1)
I already added the following to my
<http://proguard-rules.pro|proguard-rules.pro>
Copy code
-keep class org.kodein.type.TypeReference { *; }
-keep class org.kodein.type.TypeToken { *; }
Also I can't access the docs regarding proguard https://docs.kodein.org/kodein-di/7.6/framework/android.html#_proguard_configuration Website seems to be down
r

romainbsl

06/28/2022, 5:43 PM
y

Yannick

06/28/2022, 8:59 PM
Thanks, solved it
243 Views