java.lang.IndexOutOfBoundsException: setSpan (355 ... 352) has end before start

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by bummytime
, 1 year ago
setSpan (3126 ... 3122) has end before start
via GitHub by roundhill
, 1 year ago
setSpan (365 ... 359) has end before start
java.lang.IndexOutOfBoundsException: setSpan (355 ... 352) has end before start
at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java:1009)
at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:592)
at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:588)
at android.widget.SpellChecker$SpellParser.setRangeSpan(SpellChecker.java:533)
at android.widget.SpellChecker$SpellParser.parse(SpellChecker.java:733)
at android.widget.SpellChecker$1.run(SpellChecker.java:441)
at android.os.Handler.handleCallback(Handler.java:725)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5041)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)

Users with the same issue

Samebug visitor profile picture
Unknown user
2 times, 1 year ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.