Classifier does not have a companion object, and thus must be initialized here

This line selection=RowSubTShirtViewModel references the view model as if it were a named object, meaning you would have written instead of class object:

object RowSubTShirtViewModel {
   //...
}

However, since that’s not the case, kotlin is telling you that you cannot reference it like that and must initialize it. The constructor as quite a lot of parameters for me to guess what they are, but essentially you’d have to pass them in:

selection=RowSubTShirtViewModel(/*parameters here*/)

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)