java.lang.IllegalStateException

tip

This probably occurs because you are calling notifyItemInserted(position);, notifyItemChanged(position), or notifyItemRemoved(position); from a background thread (or from a callback, which runs on a background thread). Use a Handler to solve it.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • crash report
    via GitHub by door43app
    ,
  • crash report
    via GitHub by door43app
    ,
  • Single selection in RecyclerView
    via Stack Overflow by Gunaseelan
    ,
    • java.lang.IllegalStateException: Cannot call this method while RecyclerView is computing a layout or scrolling at android.support.v7.widget.RecyclerView.assertNotInLayoutOrScroll(RecyclerView.java:2186) at android.support.v7.widget.RecyclerView$RecyclerViewDataObserver.onChanged(RecyclerView.java:4255) at android.support.v7.widget.RecyclerView$AdapterDataObservable.notifyChanged(RecyclerView.java:9945) at android.support.v7.widget.RecyclerView$Adapter.notifyDataSetChanged(RecyclerView.java:5747) at abservetech.com.foodapp.Checkinpage$AddressAdapter1$1.onCheckedChanged(Checkinpage.java:857) at android.widget.CompoundButton.setChecked(CompoundButton.java:127) at abservetech.com.foodapp.Checkinpage$AddressAdapter1.onBindViewHolder(Checkinpage.java:841) at abservetech.com.foodapp.Checkinpage$AddressAdapter1.onBindViewHolder(Checkinpage.java:709) at android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:5471)

    Users with the same issue

    Diogo JaymDiogo Jaym
    13 times, last one,
    filpgamefilpgame
    2 times, last one,
    Hiren AmaliyarHiren Amaliyar
    2 times, last one,
    Indri YunitaIndri Yunita
    1 times, last one,
    Aria PahlavanAria Pahlavan
    7 times, last one,
    3 more bugmates