Passing Parceleable Object to Fragment Type Mismatch
问题 I'm new to kotlin and trying to pass an object from my adapter to a fragment. But I am getting a type mismatch in the companion object for booklist . It says Required: Parceleable Found: List<ResourcesList>? I've also tried using putParcelableArrayList and putParcelableArray and Serializable but also with the same type mismatch. My data model looks like this: @Parcelize class ResourcesList (val id: Int, val name: String, val content: Contents, val tags: List<Tags>) : Parcelable @Parcelize