I have been reading the different answers here on stackoverflow and on this blog post and tried to implement their solutions but I am still getting the error:
make sure you have set LayoutManager to RecyclerView. Hope it will help :)
LayoutManager
RecyclerView
LinearLayoutManager llm = new LinearLayoutManager(this); llm.setOrientation(LinearLayoutManager.VERTICAL); list.setLayoutManager(llm); list.setAdapter( adapter );