Closed Shajeel-Afzal closed 6 years ago
Hi @Shajeel-Afzal Plz check if it could be related to your issue https://stackoverflow.com/questions/30220771/recyclerview-inconsistency-detected-invalid-item-position ?
Thank you @kot331107, I'll try and update here.
@Shajeel-Afzal any update?
@kot331107, I have disabled the ads for now. I'll update and let you know once I have Crash Reports.
I received the same crash. It occurred for me when when banner cannot be displayed because of lost internet connection or wrong configuration.
In my case I have solved that with the next line:recyclerView.setItemAnimator(null);
In your case try to put mLiveScoreRV.setItemAnimator(null);
before mLiveScoreRV.setAdapter(mAdapterWrapper);
or when you initialize it.
@JuanNova thx
closing it for now ...
In my case I have solved that with the next line:
recyclerView.setItemAnimator(null);
In your case try to putmLiveScoreRV.setItemAnimator(null);
beforemLiveScoreRV.setAdapter(mAdapterWrapper);
or when you initialize it.
What's the different?
I also faced this problem. This problem occurred when we delete some positions without notifying RecyclerView. Finally I was solve my problem with this code binding.mRecyclerView.getRecycledViewPool().clear(); // to clear RecyclerView old cache
. Use this code where you are showing your RecyclerView
( in Activity, Fragment ).
WARNING: use this code before adding ArrayList
to RecyclerView. Otherwise, it throws an error.
I hope it helps.
Admobadapter version or commit: 1.2.6 Android compileSdkVersion: 27
I am getting a lot of Crash Reports in Crashlytics about IndexOutOfBoundException and users are also complaining it in the Google Play Store Reviews. I am using AdmobAdapter along with FirebaseUI library, Following is my code:
mAdapter = new FirebaseRecyclerAdapter<LiveScoreModel, RecyclerView.ViewHolder>(options) {
And following is my code for click handling:
And here is the full Crash Report:
And these are the devices on which it is happening the most:
You can see it yourself here: http://crashes.to/s/f002ea5b038