I'm having a hard time compiling my Android App in Xamarin Studio. The error that comes up is as follows:
No resource found that matches the given name attr "colorPrimary"
Which refers to my styles.xml:
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="@android:style/Theme.Material.Light.DarkActionBar">
<item name="colorPrimary">@color/colorPrimary</item>
<!--item name="colorPrimaryDark">@color/colorPrimaryDark</item-->
<!--item name="colorAccent">@color/colorAccent</item-->
</style>
</resources>
The usual advice found online is to set the SDK version to 21 or higher. But I already tried that:
- Set minSdkVersion to 21 in manifest
- Set targetSdkVersion to 21 in manifest
- Set taget framework to Android 5.0 in project settings
- Cleaned and rebuilt project
The error is still there :-( Are there other settings required to make this work?
android:colorPrimary
? – K Neeraj Lal