Leeway
02/12/2020, 11:04 PMminifyEnabled
, I encountered some error as:
E/AndroidRuntime: FATAL EXCEPTION: DefaultDispatcher-worker-1
Process: <http://com.org|com.org>.appname, PID: 17870
java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter $this$collectionSizeOrDefault
at kotlin.collections.CollectionsKt__IterablesKt.collectionSizeOrDefault(Unknown Source:2)
at kotlin.collections.CollectionsKt.collectionSizeOrDefault(Unknown Source:0)
at <http://com.org|com.org>.appname.c.a.c.a(:93)
at <http://com.org|com.org>.appname.c.a.c$b.invokeSuspend(:41)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(:33)
at kotlinx.coroutines.p0.run(:241)
at kotlinx.coroutines.g2.a.a(:594)
at kotlinx.coroutines.g2.a.a(:60)
at kotlinx.coroutines.g2.a$b.run(:740)
Seems like something to do with proguard rules. I tried
-keep class kotlinx.** { *; }
-keep class kotlin.** { *; }
But it didn't work. Any ideas?itnoles
02/13/2020, 2:14 AMLeeway
02/13/2020, 2:17 AMitnoles
02/13/2020, 2:18 AM<http://com.org|com.org>.appname.c.a.c.a(:93)
Leeway
02/13/2020, 2:19 AMLeeway
02/13/2020, 2:23 AM-keepnames
for "come.org.app.** {*;}, it magically solved the issue. Now I am curious about the reason.