https://kotlinlang.org logo
d

droid

08/26/2020, 4:28 PM
My app started crashing on
Android 6
devices after enabling
R8
with this error:
Copy code
ReflectKotlinClass.kt line 1 
kotlin.reflect.jvm.internal.impl.descriptors.runtime.components.ReflectClassStructure.loadClassAnnotations
Any ideas on this? It is crashing on Android 6 devices only at the moment.
Fixed this by adding
-keep class kotlin.Metadata { *; }
in the proguard file. This is fixed in
Kotlin 1.4
by default, so this solution only applies to prior kotlin versions.
2 Views