StringIndexOutOfBoundsException: String index out of range: When using a "Android Layout Inspector"

3.1k Views Asked by At

Everytime I use the Android Layout Inspector, I got that error, that doesn't allow me to make the inspection of my Page.

StringIndexOutOfBoundsException: String index out of range:5101

In this page a have a Very Long TextView, I think this could be the problem, because when I load a shorter Textview, I can use the Android Layout Inspector normally.

Any suggestion of what could be the problem?

1

There are 1 best solutions below

0
On

android:autofillHints added to EditText on Clicking Fix in the Layout Inspector Suggestions. The action Set the android:autofillHints = "". Simply Provided a value something like this. android:autofillHints = "Phone". You could also use String value. Something like this. android:autofillHints = "@string/phone" for this value to come from the strings values.