title: Error inflating class ImageButton during runtime but Android Studio shows no errors and compiles flawlessly
body: <p>Application crashes with the following exception:</p>
  
  <pre><code>android.view.InflateException: Binary XML file line #185: Binary XML file line #15: Error inflating class ImageButton
  </code></pre>
  
  <p>But Android Studio shows no layout errors, layout preview of the file that is responsible for the crash is properly rendered and the application can be compiled and run.</p>
  
  <p>Crashing <code>ImageButton</code>:</p>
  
  <pre><code>&lt;ImageButton
      android:id="@+id/kasablok_pager_btn_left"
      android:layout_width="74dp"
      android:layout_height="match_parent"
      android:background="#FFFFFF"
      app:srcCompat="@drawable/ic_chevron_right_black_24dp"
      android:rotation="180"
      tools:ignore="ContentDescription" /&gt;
  </code></pre>
  
  <p>The source drawable exists and is click-through to the file. There are no errors or warnings in the preview window to indicate a possible problem.<br>
  <code>vectorDrawables.useSupportLibrary = true</code> is also properly set in my <code>build.gradle</code> file.  </p>