I am trying to change the color of my action bar in android studio. I have already changed the minSDKVersion to 21 so I know that is not the problem. Yet I keep getting the error, I don't know what is going on. Here is my xml:
<!-- Base application theme. -->
<style name="AppTheme" parent="android:Theme.Material">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/my_action_bar_color</item>
<item name="android:navigationBarColor">@color/my_action_bar_color</item>
</style>
No resource found that matches the given name: attr 'colorPrimary'.