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

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

    I was suffering from the same problem today, found the solution! Now whenever you add image file make sure you convert it into xxhdpi by this your app will run on every device!

    0 讨论(0)
  • 2020-12-03 07:36

    In my case I had app:srcCompat="@drawable/ic_svg_image" inside ImageView, but it was very complex SVG. Though it showed in Design tab, an application crashed.

    I changed it to PNG.

    0 讨论(0)
提交回复
热议问题