java.lang.IndexOutOfBoundsException: setSpan (-1 ... -1) starts before 0


Solutions on the web149

Solution icon of web
via mozilla.com by Unknown author, 11 months ago
setSpan (-1 ... -1) starts before 0

Solution icon of web
via mozilla.com by Unknown author, 9 months ago
setSpan (-1 ... -1) starts before 0

Solution icon of web
via mozilla.com by Unknown author, 9 months ago
setSpan (-1 ... -1) starts before 0

Solution icon of stackoverflow
setSpan (2 ... 3) ends beyond length 0

Solution icon of web
getChars (0 ... 11) ends beyond length 10 1

Solution icon of web
getChars (0 ... 11) ends beyond length 10 1

Solution icon of web
via ghisler.com by Unknown author, 1 year ago
setSpan (326 ... 326) ends beyond length 259

Solution icon of stackoverflow
via Stack Overflow by eyecreate
, 1 year ago
getChars (4255 ... 4211) has end before start

Solution icon of github
via GitHub by rahu
, 1 year ago
setSpan (-1 ... -1) starts before 0

Solution icon of github
via GitHub by neutrinog
, 1 year ago
setSpan (-1 ... -1) starts before 0

Stack trace

java.lang.IndexOutOfBoundsException: setSpan (-1 ... -1) starts before 0
	at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java)

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

Once, 8 months ago
Samebug visitor profile picture
Unknown user
Once, 10 months 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
9 more bugmates