Recycler View: Inconsistency detected. Invalid view holder adapter positionViewHolder

put this line along with setting recyclerView. issue was fixed by
setting ItemAnimator to null for RecyclerView.

in kotlin

    recyclerView.layoutManager = LinearLayoutManager(this)
    recyclerView.itemAnimator = null

in java

    recyclerView.setItemAnimator(null);

Leave a Comment

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