No views in hierarchy found matching: is assignable from class: class android.widget.AdapterView
onData()
is used only with the AdapterView
and its subclasses, which RecyclerView does not belong to.
There is a helper class that espresso comes with: RecyclerViewActions that can be used to perform various actions on a recyclerview and itemviews of the viewholders.
For instance, if you want to make an assertion - you can scroll to the itemview and then use regular onView()...
to check particulars of that viewholder.