java.lang.IndexOutOfBoundsException Inconsistency detected. Invalid item position 6(offset:6).state:8 androidx.recyclerview

Fatal Exception: java.lang.IndexOutOfBoundsException
Inconsistency detected. Invalid item position 6(offset:6).state:8 androidx.recyclerview.widget.RecyclerView{7eb7afc VFED..... ........ 0,0-1080,91 #7f08018c app:id/popular_store_filter}, adapter:com.elitech.offers.coupons.deals.v2.offers.adapter.PopularFilterListAdapter@9a45585, layout:androidx.recyclerview.widget.LinearLayoutManager@6e51fda, context:com.elitech.offers.coupons.deals.MainActivity@fd20deb
androidx.recyclerview.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline (RecyclerView.java:5923)
androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition (RecyclerView.java:5858)
androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition (RecyclerView.java:5854)
androidx.recyclerview.widget.LinearLayoutManager$LayoutState.next (LinearLayoutManager.java:2230)
androidx.recyclerview.widget.LinearLayoutManager.layoutChunk (LinearLayoutManager.java:1557)
androidx.recyclerview.widget.LinearLayoutManager.fill (LinearLayoutManager.java:1517)
androidx.recyclerview.widget.LinearLayoutManager.scrollBy (LinearLayoutManager.java:1331)
androidx.recyclerview.widget.LinearLayoutManager.scrollHorizontallyBy (LinearLayoutManager.java:1063)
androidx.recyclerview.widget.RecyclerView.scrollStep (RecyclerView.java:1829)
androidx.recyclerview.widget.RecyclerView$ViewFlinger.run (RecyclerView.java:5067)
android.view.Choreographer$CallbackRecord.run (Choreographer.java:860)
android.view.Choreographer.doCallbacks (Choreographer.java:672)
android.view.Choreographer.doFrame (Choreographer.java:605)
android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:846)
android.os.Handler.handleCallback (Handler.java:742)
android.os.Handler.dispatchMessage (Handler.java:95)
android.os.Looper.loop (Looper.java:157)
android.app.ActivityThread.main (ActivityThread.java:5603)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:774)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:652)

java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder Android RecyclerView

10-24 12:43:18.799 6901-6901/com.elitech.offers.coupons.deals E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.elitech.offers.coupons.deals, PID: 6901
    java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder{5f02890 position=7 id=-1, oldPos=-1, pLpos:-1 no parent} androidx.recyclerview.widget.RecyclerView{6c5df4a VFED..... ........ 0,0-1080,91 #7f08018c app:id/popular_store_filter}, adapter:com.elitech.offers.coupons.deals.v2.offers.adapter.PopularFilterListAdapter@984cebb, layout:androidx.recyclerview.widget.LinearLayoutManager@42b2fd8, context:com.elitech.offers.coupons.deals.MainActivity@d4e5a45
        at androidx.recyclerview.widget.RecyclerView$Recycler.validateViewHolderForOffsetPosition(RecyclerView.java:5715)
        at androidx.recyclerview.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:5898)
        at androidx.recyclerview.widget.GapWorker.prefetchPositionWithDeadline(GapWorker.java:286)
        at androidx.recyclerview.widget.GapWorker.flushTaskWithDeadline(GapWorker.java:343)
        at androidx.recyclerview.widget.GapWorker.flushTasksWithDeadline(GapWorker.java:359)
        at androidx.recyclerview.widget.GapWorker.prefetch(GapWorker.java:366)
        at androidx.recyclerview.widget.GapWorker.run(GapWorker.java:397)
        at android.os.Handler.handleCallback(Handler.java:742)
        at android.os.Handler.dispatchMessage(Handler.java:95)
        at android.os.Looper.loop(Looper.java:157)
        at android.app.ActivityThread.main(ActivityThread.java:5603)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:774)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:652)

java.lang.IllegalStateException: An instance of OnFlingListener already set

10-12 12:35:15.151 14322-14322/com.geekscompete.gate_isro_cs.ugc_net_preparation W/System.err: java.lang.IllegalStateException: An instance of OnFlingListener already set.
10-12 12:35:15.151 14322-14322/com.geekscompete.gate_isro_cs.ugc_net_preparation W/System.err:     at androidx.recyclerview.widget.SnapHelper.setupCallbacks(SnapHelper.java:113)
10-12 12:35:15.151 14322-14322/com.geekscompete.gate_isro_cs.ugc_net_preparation W/System.err:     at androidx.recyclerview.widget.SnapHelper.attachToRecyclerView(SnapHelper.java:101)
10-12 12:35:15.151 14322-14322/com.geekscompete.gate_isro_cs.ugc_net_preparation W/System.err:     at com.geekscompete.gate_isro_cs.ugc_net_preparation.v2.HomeRecyclerViewAdapter.addSlidersRV(HomeRecyclerViewAdapter.java:3288)
10-12 12:35:15.151 14322-14322/com.geekscompete.gate_isro_cs.ugc_net_preparation W/System.err:     at com.geekscompete.gate_isro_cs.ugc_net_preparation.v2.HomeRecyclerViewAdapter.access$1400(HomeRecyclerViewAdapter.java:146)
10-12 12:35:15.151 14322-14322/com.geekscompete.gate_isro_cs.ugc_net_preparation W/System.err:     at com.geekscompete.gate_isro_cs.ugc_net_preparation.v2.HomeRecyclerViewAdapter$11.onSuccess(HomeRecyclerViewAdapter.java:3180)
10-12 12:35:15.151 14322-14322/com.geekscompete.gate_isro_cs.ugc_net_preparation W/System.err:     at com.geekscompete.gate_isro_cs.ugc_net_preparation.network.NetworkUtility$1.onResponse(NetworkUtility.java:156)
10-12 12:35:15.151 14322-14322/com.geekscompete.gate_isro_cs.ugc_net_preparation W/System.err:     at com.geekscompete.gate_isro_cs.ugc_net_preparation.network.NetworkUtility$1.onResponse(NetworkUtility.java:140)
10-12 12:35:15.151 14322-14322/com.geekscompete.gate_isro_cs.ugc_net_preparation W/System.err:     at com.geekscompete.gate_isro_cs.ugc_net_preparation.network.CacheRequest.deliverResponse(CacheRequest.java:99)
10-12 12:35:15.151 14322-14322/com.geekscompete.gate_isro_cs.ugc_net_preparation W/System.err:     at com.geekscompete.gate_isro_cs.ugc_net_preparation.network.CacheRequest.deliverResponse(CacheRequest.java:19)
10-12 12:35:15.151 14322-14322/com.geekscompete.gate_isro_cs.ugc_net_preparation W/System.err:     at com.android.volley.ExecutorDelivery$ResponseDeliveryRunnable.run(ExecutorDelivery.java:102)
10-12 12:35:15.151 14322-14322/com.geekscompete.gate_isro_cs.ugc_net_preparation W/System.err:     at android.os.Handler.handleCallback(Handler.java:742)
10-12 12:35:15.151 14322-14322/com.geekscompete.gate_isro_cs.ugc_net_preparation W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:95)
10-12 12:35:15.151 14322-14322/com.geekscompete.gate_isro_cs.ugc_net_preparation W/System.err:     at android.os.Looper.loop(Looper.java:157)
10-12 12:35:15.151 14322-14322/com.geekscompete.gate_isro_cs.ugc_net_preparation W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:5603)
10-12 12:35:15.151 14322-14322/com.geekscompete.gate_isro_cs.ugc_net_preparation W/System.err:     at java.lang.reflect.Method.invoke(Native Method)
10-12 12:35:15.151 14322-14322/com.geekscompete.gate_isro_cs.ugc_net_preparation W/System.err:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:774)
10-12 12:35:15.151 14322-14322/com.geekscompete.gate_isro_cs.ugc_net_preparation W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:652)

Popular Posts