If the inline class marked @Serializable is in another kotlin module and Proguard is enabled, a java.lang.IllegalAccessError occurs
If Proguard is disabled, no exception occurs: also if the entity is in the same module, no exception occurs.
Log crash: java.lang.IllegalAccessError: Final field 'e.c.b' cannot be written to by method 'java.lang.Object e.a.b(b0.b)' (declaration of 'e.a' appears in /data/app/~~VCTnd_psFPHb6iCMguQ8rg==/github.frosyaX.kotlinX_value_class_sample-sOua_23PZEkNu4nHKj-GrQ==/base.apk)
If the inline class marked
@Serializable
is in another kotlin module and Proguard is enabled, ajava.lang.IllegalAccessError
occursIf Proguard is disabled, no exception occurs: also if the entity is in the same module, no exception occurs.
Log crash:
java.lang.IllegalAccessError: Final field 'e.c.b' cannot be written to by method 'java.lang.Object e.a.b(b0.b)' (declaration of 'e.a' appears in /data/app/~~VCTnd_psFPHb6iCMguQ8rg==/github.frosyaX.kotlinX_value_class_sample-sOua_23PZEkNu4nHKj-GrQ==/base.apk)
To Reproduce
A project that reproduces the issue: Android Project
or code:
app-android module
lib-kotlin module:
Also Proguard is enabled
Expected behavior
No-exception behavior
Environment