Joseph Hawkes-Cates
11/17/2021, 9:49 PMjava.lang.NoClassDefFoundError: Could not initialize class...
whenever I try to create the data class instance within my preview composable function. Has anyone else run into this before?Joseph Hawkes-Cates
11/17/2021, 9:51 PM@Preview("preview")
@Composable
fun Preview() {
val data = SomeDataClass(field1 = "value", field2 = "value")
MyScreenComposable(data = data)
}
This throws a NoClassDefFoundError within the Preview Error pane. It compiles fine through Gradle.Joseph Hawkes-Cates
11/17/2021, 9:54 PMAbhinav Suthar
11/18/2021, 1:26 PMJoseph Hawkes-Cates
11/18/2021, 4:51 PM