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
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 :)
I'm using app:srcCompat
instead of android:src
.
It works in android studio 3.0
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.