InflateException: Binary XML file line #8: Error inflating class ImageView

前端 未结 14 2102
忘掉有多难
忘掉有多难 2020-12-03 06:56

I know there are other questions on SO asking the same thing. I have already looked at most of them.

Most answers call about memory errors. I can\'t see how an

14条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-03 07:34

    The stack trace doesn't show it, but the error during inflation might come from drawable used in the ImageView, in this case:

    android:src="@drawable/ic_dot"
    

    OP tested this hunch, by trying a different drawable which "seems ok right now...".

提交回复
热议问题