Class ‘ListSelectionRecyclerAdapter’ is not abstract and does not implement abstract base class member public abstract fun onBindViewHolder(@NonNull p0: ListSelectionViewHolder, p1: Int): Unit defined in android.support.v7.widget.RecyclerView.Adapter
‘onBindViewHolder’ overrides nothing
‘onCreateViewHolder’ overrides nothing
Type mismatch: inferred type is View? but View was expected > Task :app.buildinforgeneratorDebug.
In fact, for now I remove all the nullable question marks and it works. Do we really need those nullable things here?
And one more thing, the first item goes under the top green bar and not in view.
Hello @bdmoakley, I am also stuck at this code, the nullable operators do not work and throw an error same as you said @tinjothomasc required itemView, found itemView?.
The error in ListSelectionAdapter class does go away when you put itemView!! not null assertion operator at the end but then the error happens in ViewHolder class which complains not implementing methods (not nullable ones)
But I don’t understand why the error not caused in the code on screen?
required itemView , found itemView? .
I had the same error above at runtime. I had to remove the ‘?’ on View to make it no longer nullable to get it to work.