Error inflating class ImageView - android.view.InflateException: Binary XML file line #10: Error inflating class ImageView

while copying the image files in drawable, you will get option to copy in both drawable and drawable-24. Make sure you copy in both and then try running.


As you see in last lines of error:

Caused by: java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x12

seems you entered something that is not a dimension where you must. And as documentation of attribute android:baseline:

The offset of the baseline within this view. May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).

But you used a string for value of baseline.