title: How to use android:Theme.Material (Material theme) in styles.xml android?
body: <p>In my application, I am trying to implement <code>android:Theme.Material</code> as a parent  theme in styles <code>values-21</code> folder: </p>
  
  <pre><code> &lt;!-- res/values-21/styles.xml --&gt;
   &lt;resources&gt;
   &lt;!-- your theme inherits from the material theme --&gt;
   &lt;style name="AppTheme" parent="android:Theme.Material"&gt;
      &lt;!-- theme customizations --&gt;
        &lt;item name="android:colorPrimary"&gt;@color/primary&lt;/item&gt;
      &lt;item name="android:textColorPrimary"&gt;@color/text_primary&lt;/item&gt;
      &lt;!-- darker variant for the status bar and contextual app bars --&gt;
      &lt;item name="android:colorPrimaryDark"&gt;@color/primary_dark&lt;/item&gt;
      &lt;!-- theme UI controls like checkboxes and text fields --&gt;
      &lt;item name="android:colorAccent"&gt;@color/accent&lt;/item&gt;
      &lt;item name="android:navigationBarColor"&gt;@color/primary_dark&lt;/item&gt;
     &lt;/style&gt;
   &lt;/resources&gt;
  </code></pre>
  
  <p>After running the app, I am getting below <code>error</code></p>
  
  <pre><code>java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
  </code></pre>
  
  <p>In values folder. I have below style</p>
  
  <pre><code>&lt;style name="AppTheme" parent="Theme.AppCompat.Light"&gt;
      &lt;!-- Customize your theme here. --&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>But, if I add the same <code>Theme.AppCompat.Light</code> in <code>values-21 folder</code> its working fine. but <code>actionbar color</code> is not changing. </p>
  
  <p><strong>Why can't i use the material design theme in <code>values-21 folder</code>?
  How to solve this problem?</strong></p>
  
  <p>(note: my application <code>minsdk verison</code> is <code>13</code> and <code>maxsdk version</code> is <code>22</code>) </p>
  
  <blockquote>
    <p>My activity extends AppCompactActivity</p>
  </blockquote>