Android 8.0 Oreo crash on focusing TextInputEditText

前端 未结 8 1641
借酒劲吻你
借酒劲吻你 2020-12-12 14:28

After updating some of our devices to android 8.0 , upon focusing on a TextInputEditText field inside of a TextInputLayout, the app crashes with th

8条回答
  •  执念已碎
    2020-12-12 15:30

    I have also facing this issue and finally we got the reason of crash on android 8.0 and android 8.1.

    first reason(important clue): empty hint(android:hint="") in xml leads to crash in oreo device.Please remove this empty hint in editText in whole project search.

    second reason(same as above explain): make sure your editText hint should be show inside TextInputLayout if you have used TextInputLayout otherwise you can use hint inside editText.

    Hope this helpe you !!

    Thank you

提交回复
热议问题