Toolbar: IllegalStateException - configure your build for VectorDrawableCompat
<p>I'm using Android Studio 2.1.2. I started a new project with minSdkVersion as 19. My activity extends AppCompatActivity. The project starts with an empty activity using a fragment.</p>

<p>When previewing content_main.xml with API 24, all is good. when previewing API 19, I get the following rendering problem:</p>

<pre><code> The following classes could not be instantiated:
- android.support.v7.widget.Toolbar
java.lang.IllegalStateException: This app has been built with an incorrect configuration. Please configure your build for VectorDrawableCompat
</code></pre>

<p>I have added every thing I found relevant to the gradle (2 files):</p>

<blockquote>
  <p>classpath 'com.android.tools.build:gradle:2.1.2'<br>
  <strong>vectorDrawables.useSupportLibrary = true</strong><br>
  buildToolsVersion "24.0.1"<br>
  compile 'com.android.support:appcompat-v7:24.1.1'<br>
  <strong>compile "com.android.support:support-v4:24.1.1"</strong><br>
  compile 'com.android.support:design:24.1.1</p>
</blockquote>

<p>But still the error appears. I've found a lot of answers on internet. But none helped. Is there a problem using the new toolbar with API 19? </p>