No resource found that matches the given name attr "colorPrimary"
<p>I'm having a hard time compiling my Android App in Xamarin Studio. The error that comes up is as follows:</p>

<blockquote>
  <p>No resource found that matches the given name attr "colorPrimary"</p>
</blockquote>

<p>Which refers to my styles.xml:</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;resources&gt;
    &lt;!-- Base application theme. --&gt;
    &lt;style name="AppTheme" parent="@android:style/Theme.Material.Light.DarkActionBar"&gt;
        &lt;item name="colorPrimary"&gt;@color/colorPrimary&lt;/item&gt;
        &lt;!--item name="colorPrimaryDark"&gt;@color/colorPrimaryDark&lt;/item--&gt;
        &lt;!--item name="colorAccent"&gt;@color/colorAccent&lt;/item--&gt;
    &lt;/style&gt;
&lt;/resources&gt;
</code></pre>

<p>The usual advice found online is to set the SDK version to 21 or higher. But I already tried that:</p>

<ul>
<li>Set minSdkVersion to 21 in manifest</li>
<li>Set targetSdkVersion to 21 in manifest</li>
<li>Set taget framework to Android 5.0 in project settings</li>
<li>Cleaned and rebuilt project</li>
</ul>

<p>The error is still there :-(
Are there other settings required to make this work?</p>