Ich habe versucht, eine Styles.xml in meinem Werte-Ressourcenverzeichnis zu erstellen, aber es stellt sich heraus, wenn ich versuche, die Datei zu erstellen, die fehlschlägt. Ich kann das Problem nicht lösen. Ist es eine Art Bug in Xamarin oder mache ich etwas falsch? PS: Ich bin neu in Xamarin.Xamarin: Kann Styles.xml nicht laden
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
</resources>
Und ich bekomme den Fehler unten:
Resources/values/Styles.xml(2): error APT0000: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
0 Warning(s)
1 Error(s)
Was ist Ihr Android-Projekt Build-Ziel? –
Überprüfen Sie, ob die Stile auf Resources.designer.cs aktualisiert werden –