2014-11-07 5 views
5

Alles, was ich versuche, Gradle zu synchronisieren, kommt dieser Fehler auf. Ich verwende SDK 21 und ich habe alle Updates installiert. Ich habe versucht, die Value.xml zu löschen, die Gradle zu bereinigen, sie zu synchronisieren und zu versuchen, die SDK-Version zu ändern. und es kommt immer noch.Es wurde keine Ressource gefunden, die dem angegebenen Namen entspricht: attr 'android: actionModeShareDrawable'

hier ist das, was falsch

C:\Users\User\AndroidStudioProjects\MyApplication\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.0\res\values-v11\values.xml 
Error:(36, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'. 
Error:(36, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'. 
Error:(36, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'. 
Error:(36, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'. 
    Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material'. 
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body1'. 
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body2'. 
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Button'. 
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Caption'. 
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display1'. 
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display2'. 
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display3'. 

geht Wenn Sie das Projekt möchte mich zu sehen geben Sie eine Nachricht. Ich bin wirklich neu in Android Studio. Ich habe die App auch neu erstellt.

+1

Wahrscheinlich duplizieren: http://stackoverflow.com/questions/24462128/error-retrieving-parent-for-item -android-studio –

+0

http://stackoverflow.com/questions/26431676/appcompat-v721-0-0-no-resource-found-that-matches-the-given-name-attr-andro –

Antwort

5

Sie müssen sicherstellen, dass alle Module, die die Unterstützungsbibliothek als Abhängigkeit haben, auch das Kompilierungs-SDK auf 21 gesetzt haben. Gehen Sie also zur Projektstruktur und überprüfen Sie alle Module auf der linken Seite.

+2

Gibt es eine nette Beschreibung wie alles mit den ganzen Support-Sachen und Gradle und Studio zusammenhängt. Wirklich, das ist so unordentlich! Scheint wie Android ist ein großer Hack. Ich denke Studio sollte das automatisch aktualisieren, warum sollte der Entwickler das manuell ändern müssen, um zusammen zu passen? – powder366

0

Aktualisierung compileSdkVersion & buildToolsVersion zu neuesten verfügbaren für mich gearbeitet. Diese Einstellungen für mich gearbeitet:

compileSdkVersion 26

buildToolsVersion '26 .0.1'