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

前端 未结 14 2107
忘掉有多难
忘掉有多难 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:14

    binary xml file line #0: error inflating class imageview

    you have to see if your image has become drawable-v23 or v24 which might be higher than your mobile os level, Make sure to avoid creating drawable version image in project

    example In drawable folder ~> "ic_contact(v24)"

提交回复
热议问题