java.lang.ArrayIndexOutOfBoundsException

length=45; index=-1

Samebug tips0

We couldn't find tips for this exception.

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

Solutions on the web26

  • via GitHub by blinskey
    ,
  • Stack trace

    • java.lang.ArrayIndexOutOfBoundsException: length=45; index=-1 at android.text.StaticLayout.calculateEllipsis(StaticLayout.java:667) at android.text.StaticLayout.out(StaticLayout.java:631) at android.text.StaticLayout.generate(StaticLayout.java:423) at android.text.StaticLayout.<init>(StaticLayout.java:140) at android.widget.TextView.makeSingleLayout(TextView.java:6449) at android.widget.TextView.makeNewLayout(TextView.java:6306) at android.widget.TextView.onMeasure(TextView.java:6663) at android.view.View.measure(View.java:17586) at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:728) at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:464) at android.view.View.measure(View.java:17586) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5543) at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436) at android.widget.LinearLayout.measureHorizontal(LinearLayout.java:1083) at android.widget.LinearLayout.onMeasure(LinearLayout.java:615) at android.view.View.measure(View.java:17586) at android.support.v7.widget.RecyclerView$LayoutManager.measureChildWithMargins(RecyclerView.java:7487) at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1416) at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1353) at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:574) at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3028) at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:2906) at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3283) at android.view.View.layout(View.java:15715) at android.view.ViewGroup.layout(ViewGroup.java:5046) at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1077) at android.view.View.layout(View.java:15715) at android.view.ViewGroup.layout(ViewGroup.java:5046) at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703) at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557) at android.widget.LinearLayout.onLayout(LinearLayout.java:1466) at android.view.View.layout(View.java:15715) at android.view.ViewGroup.layout(ViewGroup.java:5046) at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1077) at android.view.View.layout(View.java:15715) at android.view.ViewGroup.layout(ViewGroup.java:5046) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:579) at android.widget.FrameLayout.onLayout(FrameLayout.java:514) at android.view.View.layout(View.java:15715) at android.view.ViewGroup.layout(ViewGroup.java:5046) at android.support.v7.widget.ActionBarOverlayLayout.onLayout(ActionBarOverlayLayout.java:435) at android.view.View.layout(View.java:15715) at android.view.ViewGroup.layout(ViewGroup.java:5046) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:579) at android.widget.FrameLayout.onLayout(FrameLayout.java:514) at android.view.View.layout(View.java:15715) at android.view.ViewGroup.layout(ViewGroup.java:5046) at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703) at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557) at android.widget.LinearLayout.onLayout(LinearLayout.java:1466) at android.view.View.layout(View.java:15715) at android.view.ViewGroup.layout(ViewGroup.java:5046) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:579) at android.widget.FrameLayout.onLayout(FrameLayout.java:514) at android.view.View.layout(View.java:15715) at android.view.ViewGroup.layout(ViewGroup.java:5046) at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2097) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1854) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1069) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5915)

    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 visitorOnce,
    Unknown visitor
    Unknown visitorOnce,