java.lang.IllegalStateException

Added View has RecyclerView as parent but view is not a real child. Unfiltered index:3

Samebug tips1

This is a bug in UltimateRecyclerView. One workaround is disabling the swipe gesture when the recyclerview is refreshing. Another workaround seems to be not specifying your own ids


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web10

Stack trace

  • java.lang.IllegalStateException: Added View has RecyclerView as parent but view is not a real child. Unfiltered index:3 at android.support.v7.widget.RecyclerView$LayoutManager.addViewInt(RecyclerView.java:6720) at android.support.v7.widget.RecyclerView$LayoutManager.addView(RecyclerView.java:6686) at android.support.v7.widget.RecyclerView$LayoutManager.addView(RecyclerView.java:6674) at android.support.v7.widget.StaggeredGridLayoutManager.fill(StaggeredGridLayoutManager.java:1559) at android.support.v7.widget.StaggeredGridLayoutManager.scrollBy(StaggeredGridLayoutManager.java:2060) at android.support.v7.widget.StaggeredGridLayoutManager.scrollVerticallyBy(StaggeredGridLayoutManager.java:1980) at android.support.v7.widget.RecyclerView$ViewFlinger.run(RecyclerView.java:4061) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:800) at android.view.Choreographer.doCallbacks(Choreographer.java:603) at android.view.Choreographer.doFrame(Choreographer.java:571) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:786) at android.os.Handler.handleCallback(Handler.java:815) at android.os.Handler.dispatchMessage(Handler.java:104) at android.os.Looper.loop(Looper.java:192) at android.app.ActivityThread.main(ActivityThread.java:5784) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1084) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:850)

Write tip

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

Users with the same issue

Unknown visitor
Unknown visitor2 times, last one
LartenLarten
7 times, last one
Unknown visitor
Unknown visitorOnce,
Unknown visitor
Unknown visitorOnce,
Unknown visitor
Unknown visitorOnce,
1 more bugmates