Android EditText on longPress: ArrayIndexOutOfBoundsException: length=15; index=491

Just remove this line from your custom style

This single line:

  <item name="android:fontFamily">sans-serif-light</item>

Will make the EditText crash when long pressing it.

The Android copy/paste popup was the root cause of the error.

Leave a Comment