java.lang.IndexOutOfBoundsException: Invalid index 1, size is 1

GitHub | Sevenupboy | 4 months ago
  1. 0

    IndexOutOfBoundsException when clicking Button as Target View

    GitHub | 2 years ago | androidfu
    java.lang.IndexOutOfBoundsException: Invalid index 1, size is 1
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Android - Invalid index 1, size is 1 - out of bounds

    Stack Overflow | 3 years ago | James King
    java.lang.IndexOutOfBoundsException: Invalid index 1, size is 1
  4. 0

    SimpleExpandableListViewAdapter out of bounds exception

    Stack Overflow | 2 years ago | LemonLake
    java.lang.IndexOutOfBoundsException: Invalid index 1, size is 1
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.IndexOutOfBoundsException

    Invalid index 1, size is 1

    at java.util.ArrayList.throwIndexOutOfBoundsException()
  2. Java RT
    ArrayList.get
    1. java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)
    2. java.util.ArrayList.get(ArrayList.java:308)
    2 frames
  3. com.github.mikephil
    BarLineChartBase.onSizeChanged
    1. com.github.mikephil.charting.formatter.FormattedStringCache$PrimFloat.getFormattedValue(FormattedStringCache.java:151)
    2. com.github.mikephil.charting.formatter.DefaultAxisValueFormatter.getFormattedValue(DefaultAxisValueFormatter.java:45)
    3. com.github.mikephil.charting.components.AxisBase.getFormattedLabel(AxisBase.java:451)
    4. com.github.mikephil.charting.components.AxisBase.getLongestLabel(AxisBase.java:437)
    5. com.github.mikephil.charting.components.YAxis.getRequiredWidthSpace(YAxis.java:302)
    6. com.github.mikephil.charting.charts.BarLineChartBase.calculateOffsets(BarLineChartBase.java:461)
    7. com.github.mikephil.charting.charts.BarLineChartBase.notifyDataSetChanged(BarLineChartBase.java:344)
    8. com.github.mikephil.charting.charts.Chart.onSizeChanged(Chart.java:1727)
    9. com.github.mikephil.charting.charts.BarLineChartBase.onSizeChanged(BarLineChartBase.java:1563)
    9 frames
  4. Android Platform
    ViewGroup.layout
    1. android.view.View.sizeChange(View.java:15786)
    2. android.view.View.setFrame(View.java:15751)
    3. android.view.View.layout(View.java:15667)
    4. android.view.ViewGroup.layout(ViewGroup.java:5038)
    5. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
    6. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
    7. android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
    8. android.view.View.layout(View.java:15671)
    9. android.view.ViewGroup.layout(ViewGroup.java:5038)
    10. android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
    11. android.widget.FrameLayout.onLayout(FrameLayout.java:514)
    12. android.view.View.layout(View.java:15671)
    13. android.view.ViewGroup.layout(ViewGroup.java:5038)
    13 frames
  5. android.support.design
    CoordinatorLayout.onLayout
    1. android.support.design.widget.HeaderScrollingViewBehavior.layoutChild(HeaderScrollingViewBehavior.java:122)
    2. android.support.design.widget.ViewOffsetBehavior.onLayoutChild(ViewOffsetBehavior.java:42)
    3. android.support.design.widget.AppBarLayout$ScrollingViewBehavior.onLayoutChild(AppBarLayout.java:1170)
    4. android.support.design.widget.CoordinatorLayout.onLayout(CoordinatorLayout.java:814)
    4 frames
  6. Android Platform
    ViewGroup.layout
    1. android.view.View.layout(View.java:15671)
    2. android.view.ViewGroup.layout(ViewGroup.java:5038)
    2 frames
  7. Android Support v4
    DrawerLayout.onLayout
    1. android.support.v4.widget.DrawerLayout.onLayout(DrawerLayout.java:1187)
    1 frame
  8. Android Platform
    ViewRootImpl.performTraversals
    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)
    26 frames