I just marked the following class with `@Immutable...
# compose
a
I just marked the following class with
@Immutable
and now the app started crashing.
Copy code
@Immutable
data class EqualSplit(
    val name: String,
    val image: String,
    val number: String,
    val selected: Boolean
)
The error log says:
Copy code
java.lang.NoSuchFieldError: No static field $stable of type I in class EqualSplit; or its superclasses
What does this mean?
j
Have you done a clean/rebuild? Looks fine to me on the face of it
a
Rebuilding the project worked. Thanks.
152 Views