Binary XML file line #0: Error inflating class ImageView

后端 未结 9 674
日久生厌
日久生厌 2020-11-30 07:29

I am using Android studio 3.0
I am getting tired fixing this problem. the app does not execute it always show me this error Binary XML file line #0: Error inflating clas

相关标签:
9条回答
  • 2020-11-30 08:30

    As far as I know, this problem occur when we paste image from explorer to drawable folder then it ask weather to copy drawable or drawable-v24 and if you have pasted images in both directory structures, or have one more images with different directory structure then it will show this error, make sure to copy image only in 'drawable' directory structure :)

    0 讨论(0)
  • 2020-11-30 08:32

    I'm using app:srcCompat instead of android:src. It works in android studio 3.0

    0 讨论(0)
  • 2020-11-30 08:33

    If you already have the option in the accepted answer check if the vector is in the in the "drawable-anydpi" folder. Moving it to the "drawable" folder fixes it.

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