2014-11-07 13 views
5

Tutto ciò che provo a sincronizzare Gradle si verifica questo errore. Sto usando l'SDK 21 e ho installato tutti gli aggiornamenti. Ho provato a eliminare Value.xml, a pulire Gradle, a sincronizzarlo e a provare a cambiare la versione dell'SDK. e ancora arriva.Nessuna risorsa trovata che corrisponda al nome specificato: attr 'android: actionModeShareDrawable'

qui è quello che va storto

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'. 

Se si desidera che il progetto per vedere darmi un messaggio. Im davvero nuovo per Android Studio. Ive ricostruire anche l'app.

+1

Probabilmente duplicate: 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 –

risposta

5

È necessario assicurarsi che tutti i moduli che hanno la libreria di supporto come dipendenza abbiano anche l'SDK di compilazione impostato su 21. Quindi andare su Struttura del progetto e controllare tutti i moduli sul lato sinistro.

+2

C'è una bella descrizione come tutto si relaziona con tutte le cose di supporto e Gradle e Studio. Davvero questo è così disordinato! Sembra che Android sia un grosso problema. Penso che Studio dovrebbe aggiornarlo automaticamente, perché lo sviluppatore dovrebbe modificarlo manualmente per adattarsi insieme? – powder366

0

Aggiornamento compileSdkVersion & buildToolsVersion all'ultimo disponibile uno ha funzionato per me. Queste impostazioni lavorato per me:

compileSdkVersion 26

buildToolsVersion '26 .0.1'

Problemi correlati