Xamarin : No resource found that matches the given names (AppCompat)
Try this.
Navigate to C:\Program Files (x86)\Android\android-sdk\extras\android\support\v7\appcompat
.
Open project.properties
file.
Change target android to target=android-21
.
I had the same problem because ,I was using these item in style.xml
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
but inside color.xml there were no colorAccent defined
<resources>
<color name="primary">#2196F3</color>
<color name="primaryDark">#1976D2</color>
<color name="accent">#FFC107</color>
<color name="window_background">#F5F5F5</color>
<color name="splash_background">#3498DB</color>
simply solved by adding
<color name="colorAccent">#3498db</color>
In my case, "Minimum Android Version" API 21, but "Target Android Version" is "use target framework version (API 23)", however it wasn't working earlier, then I've point both the version as API 21 and all of sudden it is started working as expected.
Later I've changed Minimum Android Version is API 21 and Target Android Version as "use target framework version (API 23)"
I got the same problem with Xamarin Studio on Mac. What I did to solve the problem is updating the NuGet Package Xamarin.Android.Support.v7.AppCompat
. I think you can use the same approach to fix your issue on Visual Studio, too.
Take a look