java.lang.IllegalStateException: Added View has RecyclerView as parent but view is not a real child. Unfiltered index:5

GitHub | muhezi | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 315#246166675

    GitHub | 6 months ago | muhezi
    java.lang.IllegalStateException: Added View has RecyclerView as parent but view is not a real child. Unfiltered index:5
  2. 0

    [Developer version] Crash when touch Recyclerview

    GitHub | 7 months ago | mdtuyen
    java.lang.IllegalStateException: Layout state should be one of 100 but it is 10

    Root Cause Analysis

    1. java.lang.IllegalStateException

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

      at android.support.v7.widget.RecyclerView$LayoutManager.addViewInt()
    2. Android v7
      RecyclerView.onTouchEvent
      1. android.support.v7.widget.RecyclerView$LayoutManager.addViewInt(RecyclerView.java:6720)
      2. android.support.v7.widget.RecyclerView$LayoutManager.addView(RecyclerView.java:6686)
      3. android.support.v7.widget.RecyclerView$LayoutManager.addView(RecyclerView.java:6674)
      4. android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1404)
      5. android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1353)
      6. android.support.v7.widget.LinearLayoutManager.scrollBy(LinearLayoutManager.java:1180)
      7. android.support.v7.widget.LinearLayoutManager.scrollVerticallyBy(LinearLayoutManager.java:1031)
      8. android.support.v7.widget.RecyclerView.scrollByInternal(RecyclerView.java:1529)
      9. android.support.v7.widget.RecyclerView.onTouchEvent(RecyclerView.java:2486)
      9 frames
    3. Android Platform
      View.dispatchTouchEvent
      1. android.view.View.dispatchTouchEvent(View.java:7731)
      1 frame