java.lang.IllegalStateException: Layout state should be one of 100 but it is 10

GitHub | st1hy | 4 months ago
  1. 0

    IllegalStateException when inflating layout with support library 24

    GitHub | 4 months ago | st1hy
    java.lang.IllegalStateException: Layout state should be one of 100 but it is 10
  2. 0

    Layout state should be one of 100 but it is 10

    Stack Overflow | 3 days ago | Neon Warge
    java.lang.IllegalStateException: Layout state should be one of 100 but it is 10
  3. 0

    GitHub comment 147#128559043

    GitHub | 1 year ago | hush881025
    java.lang.IllegalStateException: Added View has RecyclerView as parent but view is not a real child. Unfiltered index:0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

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

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

    Sample crashes on N preview emulator

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

    2 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Layout state should be one of 100 but it is 10

      at android.support.v7.widget.RecyclerView$State.assertLayoutStep()
    2. Android v7
      RecyclerView.onLayout
      1. android.support.v7.widget.RecyclerView$State.assertLayoutStep(RecyclerView.java:10477)
      2. android.support.v7.widget.RecyclerView.dispatchLayoutStep3(RecyclerView.java:3277)
      3. android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3080)
      4. android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3518)
      4 frames
    3. Android Platform
      ViewGroup.layout
      1. android.view.View.layout(View.java:15671)
      2. android.view.ViewGroup.layout(ViewGroup.java:5038)
      3. android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
      4. android.widget.FrameLayout.onLayout(FrameLayout.java:514)
      5. android.view.View.layout(View.java:15671)
      6. android.view.ViewGroup.layout(ViewGroup.java:5038)
      6 frames
    4. android.support.design
      CoordinatorLayout.onLayout
      1. android.support.design.widget.HeaderScrollingViewBehavior.layoutChild(HeaderScrollingViewBehavior.java:131)
      2. android.support.design.widget.ViewOffsetBehavior.onLayoutChild(ViewOffsetBehavior.java:42)
      3. android.support.design.widget.AppBarLayout$ScrollingViewBehavior.onLayoutChild(AppBarLayout.java:1319)
      4. android.support.design.widget.CoordinatorLayout.onLayout(CoordinatorLayout.java:817)
      4 frames
    5. Android Platform
      ViewGroup.layout
      1. android.view.View.layout(View.java:15671)
      2. android.view.ViewGroup.layout(ViewGroup.java:5038)
      2 frames
    6. Android Support v4
      DrawerLayout.onLayout
      1. android.support.v4.widget.DrawerLayout.onLayout(DrawerLayout.java:1191)
      1 frame
    7. Android Platform
      Handler.dispatchMessage
      1. android.view.View.layout(View.java:15671)
      2. android.view.ViewGroup.layout(ViewGroup.java:5038)
      3. android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
      4. android.widget.FrameLayout.onLayout(FrameLayout.java:514)
      5. android.view.View.layout(View.java:15671)
      6. android.view.ViewGroup.layout(ViewGroup.java:5038)
      7. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
      8. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
      9. android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
      10. android.view.View.layout(View.java:15671)
      11. android.view.ViewGroup.layout(ViewGroup.java:5038)
      12. android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
      13. android.widget.FrameLayout.onLayout(FrameLayout.java:514)
      14. android.view.View.layout(View.java:15671)
      15. android.view.ViewGroup.layout(ViewGroup.java:5038)
      16. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
      17. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
      18. android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
      19. android.view.View.layout(View.java:15671)
      20. android.view.ViewGroup.layout(ViewGroup.java:5038)
      21. android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
      22. android.widget.FrameLayout.onLayout(FrameLayout.java:514)
      23. android.view.View.layout(View.java:15671)
      24. android.view.ViewGroup.layout(ViewGroup.java:5038)
      25. android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2086)
      26. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1843)
      27. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1061)
      28. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5885)
      29. android.os.Handler.handleCallback(Handler.java:739)
      30. android.os.Handler.dispatchMessage(Handler.java:95)
      30 frames
    8. Roboelectric HTTP
      ShadowMessageQueue$1.run
      1. org.robolectric.shadows.ShadowMessageQueue.dispatchMessage(ShadowMessageQueue.java:144)
      2. org.robolectric.shadows.ShadowMessageQueue.access$100(ShadowMessageQueue.java:30)
      3. org.robolectric.shadows.ShadowMessageQueue$1.run(ShadowMessageQueue.java:105)
      3 frames
    9. Roboelectric
      Scheduler.unPause
      1. org.robolectric.util.Scheduler$ScheduledRunnable.run(Scheduler.java:335)
      2. org.robolectric.util.Scheduler.runOneTask(Scheduler.java:237)
      3. org.robolectric.util.Scheduler.advanceTo(Scheduler.java:218)
      4. org.robolectric.util.Scheduler.advanceBy(Scheduler.java:201)
      5. org.robolectric.util.Scheduler.setIdleState(Scheduler.java:78)
      6. org.robolectric.util.Scheduler.unPause(Scheduler.java:112)
      6 frames
    10. Roboelectric HTTP
      ShadowViewGroup.addView
      1. org.robolectric.shadows.ShadowLooper.unPause(ShadowLooper.java:291)
      2. org.robolectric.shadows.ShadowLooper.runPaused(ShadowLooper.java:342)
      3. org.robolectric.shadows.ShadowViewGroup.addView(ShadowViewGroup.java:34)
      3 frames
    11. Android Platform
      LayoutInflater.inflate
      1. android.view.ViewGroup.addView(ViewGroup.java)
      2. android.view.ViewGroup.addView(ViewGroup.java:3758)
      3. android.view.LayoutInflater.rInflate(LayoutInflater.java:810)
      4. android.view.LayoutInflater.inflate(LayoutInflater.java:504)
      5. android.view.LayoutInflater.inflate(LayoutInflater.java:414)
      5 frames
    12. com.github.st1hy
      MealsAdapter.onCreateViewHolder
      1. com.github.st1hy.countthemcalories.activities.overview.fragment.presenter.MealsAdapter.onCreateViewHolder(MealsAdapter.java:102)
      2. com.github.st1hy.countthemcalories.activities.overview.fragment.presenter.MealsAdapter.onCreateViewHolder(MealsAdapter.java:49)
      2 frames
    13. Android v7
      RecyclerView.onLayout
      1. android.support.v7.widget.RecyclerView$Adapter.createViewHolder(RecyclerView.java:5779)
      2. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5003)
      3. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4913)
      4. android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2029)
      5. android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1414)
      6. android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1377)
      7. android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:578)
      8. android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3260)
      9. android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3069)
      10. android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3518)
      10 frames
    14. Android Platform
      ViewGroup.layout
      1. android.view.View.layout(View.java:15671)
      2. android.view.ViewGroup.layout(ViewGroup.java:5038)
      3. android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
      4. android.widget.FrameLayout.onLayout(FrameLayout.java:514)
      5. android.view.View.layout(View.java:15671)
      6. android.view.ViewGroup.layout(ViewGroup.java:5038)
      6 frames
    15. android.support.design
      CoordinatorLayout.onLayout
      1. android.support.design.widget.HeaderScrollingViewBehavior.layoutChild(HeaderScrollingViewBehavior.java:131)
      2. android.support.design.widget.ViewOffsetBehavior.onLayoutChild(ViewOffsetBehavior.java:42)
      3. android.support.design.widget.AppBarLayout$ScrollingViewBehavior.onLayoutChild(AppBarLayout.java:1319)
      4. android.support.design.widget.CoordinatorLayout.onLayout(CoordinatorLayout.java:817)
      4 frames
    16. Android Platform
      ViewGroup.layout
      1. android.view.View.layout(View.java:15671)
      2. android.view.ViewGroup.layout(ViewGroup.java:5038)
      2 frames
    17. Android Support v4
      DrawerLayout.onLayout
      1. android.support.v4.widget.DrawerLayout.onLayout(DrawerLayout.java:1191)
      1 frame
    18. Android Platform
      Handler.dispatchMessage
      1. android.view.View.layout(View.java:15671)
      2. android.view.ViewGroup.layout(ViewGroup.java:5038)
      3. android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
      4. android.widget.FrameLayout.onLayout(FrameLayout.java:514)
      5. android.view.View.layout(View.java:15671)
      6. android.view.ViewGroup.layout(ViewGroup.java:5038)
      7. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
      8. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
      9. android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
      10. android.view.View.layout(View.java:15671)
      11. android.view.ViewGroup.layout(ViewGroup.java:5038)
      12. android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
      13. android.widget.FrameLayout.onLayout(FrameLayout.java:514)
      14. android.view.View.layout(View.java:15671)
      15. android.view.ViewGroup.layout(ViewGroup.java:5038)
      16. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
      17. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
      18. android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
      19. android.view.View.layout(View.java:15671)
      20. android.view.ViewGroup.layout(ViewGroup.java:5038)
      21. android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
      22. android.widget.FrameLayout.onLayout(FrameLayout.java:514)
      23. android.view.View.layout(View.java:15671)
      24. android.view.ViewGroup.layout(ViewGroup.java:5038)
      25. android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2086)
      26. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1843)
      27. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1061)
      28. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5885)
      29. android.os.Handler.handleCallback(Handler.java:739)
      30. android.os.Handler.dispatchMessage(Handler.java:95)
      30 frames
    19. Roboelectric HTTP
      ShadowMessageQueue$1.run
      1. org.robolectric.shadows.ShadowMessageQueue.dispatchMessage(ShadowMessageQueue.java:144)
      2. org.robolectric.shadows.ShadowMessageQueue.access$100(ShadowMessageQueue.java:30)
      3. org.robolectric.shadows.ShadowMessageQueue$1.run(ShadowMessageQueue.java:105)
      3 frames
    20. Roboelectric
      Scheduler.unPause
      1. org.robolectric.util.Scheduler$ScheduledRunnable.run(Scheduler.java:335)
      2. org.robolectric.util.Scheduler.runOneTask(Scheduler.java:237)
      3. org.robolectric.util.Scheduler.advanceTo(Scheduler.java:218)
      4. org.robolectric.util.Scheduler.advanceBy(Scheduler.java:201)
      5. org.robolectric.util.Scheduler.setIdleState(Scheduler.java:78)
      6. org.robolectric.util.Scheduler.unPause(Scheduler.java:112)
      6 frames
    21. Roboelectric HTTP
      CoreShadowsAdapter$2.runPaused
      1. org.robolectric.shadows.ShadowLooper.unPause(ShadowLooper.java:291)
      2. org.robolectric.shadows.ShadowLooper.runPaused(ShadowLooper.java:342)
      3. org.robolectric.shadows.CoreShadowsAdapter$2.runPaused(CoreShadowsAdapter.java:40)
      3 frames
    22. Roboelectric
      Robolectric.setupActivity
      1. org.robolectric.util.ActivityController.visible(ActivityController.java:177)
      2. org.robolectric.util.ActivityController.setup(ActivityController.java:227)
      3. org.robolectric.Robolectric.setupActivity(Robolectric.java:96)
      3 frames
    23. com.github.st1hy
      DrawerActivityRoboTest.setUp
      1. com.github.st1hy.countthemcalories.core.drawer.view.DrawerActivityRoboTest.setUp(DrawerActivityRoboTest.java:58)
      1 frame
    24. JUnit
      RunAfters.evaluate
      1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      4. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
      5. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      5 frames
    25. Roboelectric
      RobolectricTestRunner.runChild
      1. org.robolectric.RobolectricTestRunner$2.evaluate(RobolectricTestRunner.java:248)
      2. org.robolectric.RobolectricTestRunner.runChild(RobolectricTestRunner.java:174)
      3. org.robolectric.RobolectricTestRunner.runChild(RobolectricTestRunner.java:63)
      3 frames
    26. JUnit
      ParentRunner$2.evaluate
      1. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      2. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      3. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      4. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      5. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      5 frames
    27. Roboelectric
      RobolectricTestRunner$1.evaluate
      1. org.robolectric.RobolectricTestRunner$1.evaluate(RobolectricTestRunner.java:140)
      1 frame
    28. JUnit
      JUnitCore.run
      1. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      2. org.junit.runners.Suite.runChild(Suite.java:128)
      3. org.junit.runners.Suite.runChild(Suite.java:27)
      4. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      5. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      6. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      7. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      8. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      9. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      10. org.junit.runner.JUnitCore.run(JUnitCore.java:137)
      10 frames
    29. IntelliJ junit4 module
      JUnit4IdeaTestRunner.startRunnerWithArgs
      1. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)
      1 frame
    30. IDEA
      AppMain.main
      1. com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
      2. com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
      3. com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
      3 frames