2014-11-12 3 views
5

Alles funktioniert gut, bevor sdk aktualisiert und Bibliotheken unterstützen. Nach der Aktualisierung habe ich gerade die Support-Bibliothek hinzugefügt (bedeutet, dass die Support-Bibliothek mit Ressourcen importiert wurde). sobald ich es füge ich die folgenden FehlerAndroid Support-Bibliothek appcompat_v7 v21.0.1 gibt Fehler

Fehler erhalten:

[2014-11-12 13:28:16 - android-support-v7-appcompat] E:\Android Projects\android-support-v7-appcompat\res\values-v21\styles_base.xml:75: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton'. 
    [2014-11-12 13:28:16 - android-support-v7-appcompat] 
    [2014-11-12 13:28:16 - android-support-v7-appcompat] E:\Android Projects\android-support-v7-appcompat\res\values-v21\styles_base.xml:79: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.CloseMode'. 
    [2014-11-12 13:28:16 - android-support-v7-appcompat] 
    [2014-11-12 13:28:16 - android-support-v7-appcompat] E:\Android Projects\android-support-v7-appcompat\res\values-v21\styles_base.xml:83: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.Overflow'. 
    [2014-11-12 13:28:16 - android-support-v7-appcompat] 
    [2014-11-12 13:28:16 - android-support-v7-appcompat] E:\Android Projects\android-support-v7-appcompat\res\values-v21\styles_base.xml:25: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabView'. 
    [2014-11-12 13:28:16 - android-support-v7-appcompat] 
    [2014-11-12 13:28:16 - android-support-v7-appcompat] E:\Android Projects\android-support-v7-appcompat\res\values-v21\styles_base.xml:29: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabView'. 
    [2014-11-12 13:28:16 - android-support-v7-appcompat] 
    [2014-11-12 13:28:16 - android-support-v7-appcompat] E:\Android Projects\android-support-v7-appcompat\res\values-v17\styles_rtl.xml:20: error: Error: No resource found that matches the given name: attr 'android:layout_marginStart'. 
    [2014-11-12 13:28:16 - android-support-v7-appcompat] 
    [2014-11-12 13:28:16 - android-support-v7-appcompat] E:\Android Projects\android-support-v7-appcompat\res\values-v17\styles_rtl.xml:25: error: Error: No resource found that matches the given name: attr 'android:paddingEnd'. 
    [2014-11-12 13:28:16 - android-support-v7-appcompat] 
    [2014-11-12 13:28:16 - android-support-v7-appcompat] E:\Android Projects\android-support-v7-appcompat\res\values-v17\styles_rtl.xml:24: error: Error: No resource found that matches the given name: attr 'android:paddingStart'.  
    [2014-11-12 13:28:16 - android-support-v7-appcompat] E:\Android Projects\android-support-v7-appcompat\res\values-v21\themes_base.xml:26: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material'. 
    [2014-11-12 13:28:16 - android-support-v7-appcompat] 
    [2014-11-12 13:28:16 - android-support-v7-appcompat] E:\Android Projects\android-support-v7-appcompat\res\values-v21\themes_base.xml:31: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Light'. 
    [2014-11-12 13:28:16 - android-support-v7-appcompat] 
    [2014-11-12 13:28:16 - android-support-v7-appcompat] E:\Android Projects\android-support-v7-appcompat\res\values-v21\themes_base.xml:36: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Dialog'. 
    [2014-11-12 13:28:16 - android-support-v7-appcompat] 
    [2014-11-12 13:28:16 - android-support-v7-appcompat] E:\Android Projects\android-support-v7-appcompat\res\values-v21\themes_base.xml:41: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Light.Dialog'. 
    [2014-11-12 13:28:16 - android-support-v7-appcompat] 
    [2014-11-12 13:28:16 - android-support-v7-appcompat] E:\Android Projects\android-support-v7-appcompat\res\values-v11\themes_base.xml:338: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'. 

Nach dem Wechsel meines Build-Ziels auf 21 von 17 bekomme ich diese Fehler

[2014-11-12 13:33:15 - android-support-v7-appcompat] E:\Android Projects\android-support-v7-appcompat\res\values-large-v14\themes_base.xml:19: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.Base.AppCompat.DialogWhenLarge.Base'. 
[2014-11-12 13:33:15 - android-support-v7-appcompat] 
[2014-11-12 13:33:15 - android-support-v7-appcompat] E:\Android Projects\android-support-v7-appcompat\res\values-large-v14\themes_base.xml:22: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.Base.AppCompat.Light.DialogWhenLarge.Base'. 
[2014-11-12 13:33:15 - android-support-v7-appcompat] 

ich viel ausprobiert von Dingen wie dem Importieren des Projekts wieder Ändern der Datei project.properties usw., kann ich das Problem

nicht lösen

bitte helfen Sie mir danke im Voraus.

+0

einmal Eclipse neu starten !!! – duggu

+0

entfernen Sie dieses Thema aus values-v14-Ordner oder enthalten Sie Material Design Lib –

+0

wo haben Sie v21.0.1 aus? Die letzte Version, die ich in freier Wildbahn gesehen habe, ist 21.0.0 – ligi

Antwort

5

Ändern Sie die project.properties-Datei, die hat:

target=android-19 

zu

target=android-21 

nach Änderungen oben schließen Projekt dann offen und sauber

+0

Jetzt erinnere ich mich, dass ich das letzte Mal getan habe. Gute Erinnerung. Vielen Dank. :) – Sufian

0

Ich möchte kommentieren, aber ich bin zu wenig Ruf. Ich laufe das gleiche Problem einmal beim Wechsel meines PCs, also habe ich die Bibliothek von meinem alten PC exportiert und importiert diese in die neue afaik. Sie können es versuchen, aber ich kann nicht garantieren, dass es auch für Sie funktioniert. Sie können meine exportierte Bibliothek verwenden, wenn Sie möchten. Obwohl es nicht viel Sinn macht, hat es aus irgendeinem Grund für mich funktioniert. https://www.dropbox.com/s/ly9mhmlvthk15f9/Libraries.zip?dl=0

+0

nach dem Hinzufügen Ihrer Bibliothek bekomme ich diesen Fehler Jar Mismatch! Fix deine Abhängigkeiten – Prashanth

+0

http://StackOverflow.com/Questions/16056914/Jar-mismatch-fix-your-dependencies –

+0

Ich hoffe, dass Sie folgen können, dass die Jungs dort antworten. Das habe ich auch benutzt. –

Verwandte Themen