LinearLayoutManager cannot resolve getOrientation()
Change
private RecyclerView.LayoutManager mLayoutManager;
to
private LinearLayoutManager mLayoutManager;
I got the same issue when I create a divider.
You can simply put the orientation yourself, LinearLayoutManager.VERTICAL
or LinearLayoutManager.HORIZONTAL
, according to the orientation your RecyclerView
. It works for me.