Fehler beim abrufen der parent-Element: Keine Ressource gefunden, die Spiele der Vorname " android:Theme.Material.Licht'
Ich bin immer diese Fehler in styles.xml:
Fehler beim abrufen der parent-Element: Keine Ressource gefunden, die Spiele der
Vorname " android:Theme.Material.Licht'.
In-manifest:
<uses-sdk
android:minSdkVersion="16"
android:targetSdkVersion="21" />
Android-Sdk-Manager:
Ich bin aktualisiert alle api-21 und extras.
In Ordnung und Export:
values-v21/styles.xml:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme" parent="android:Theme.Material.Light">
<item name="android:colorPrimary">@color/primary</item>
<item name="android:colorPrimaryDark">@color/primary_dark</item>
<item name="android:colorAccent">@color/accent</item>
<item name="android:textColorPrimary">@color/text_primary</item>
<item name="android:textColor">@color/text_secondary</item>
<item name="android:navigationBarColor">@color/primary_dark</item>
</style>
</resources>
Konsole:
E:\workspace\WelcomeToL\app\src\main\res\values-v21\styles.xml:3: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Light'.
E:\workspace\WelcomeToL\app\src\main\res\values-v21\styles.xml:7: error: Error: No resource found that matches the given name: attr 'android:colorAccent'.
E:\workspace\WelcomeToL\app\src\main\res\values-v21\styles.xml:5: error: Error: No resource found that matches the given name: attr 'android:colorPrimary'.
E:\workspace\WelcomeToL\app\src\main\res\values-v21\styles.xml:6: error: Error: No resource found that matches the given name: attr 'android:colorPrimaryDark'.
E:\workspace\WelcomeToL\app\src\main\res\values-v21\styles.xml:10: error: Error: No resource found that matches the given name: attr 'android:navigationBarColor'.
Ich wusste nicht, warum dieser Fehler immer noch Auftritt.Kann jemand mir helfen mit diesem.Danke.
Du musst angemeldet sein, um einen Kommentar abzugeben.
Material.Light
Thema benötigen API-level 21 für das Projekt. Set Project Build Target für das Projekt ausProperties->Android->Project Build Target
zuAPI 21
.