The constructor must have a parameter of type ComposeView which is missing. OnCreateViewHolder return the constructor withe param but the class definition does not include the param. class JuiceListViewHolder( private val composeView : ComposeView, // missing in the document. private val onEdit: (Juice) -> Unit, private val onDelete: (Juice) -> Unit ) : RecyclerView.ViewHolder(composeView){}