Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No resource found that matches the given name: attr 'android:actionModeShareDrawable'

Everything i try to sync Gradle this error comes up. I am using SDK 21 and I have all updates installed. I tried deleting the Value.xml, cleaning the Gradle, syncing it and trying to change the SDK version. and still it come up.

here is what goes wrong

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

If you would like the project to see give me a message. Im really new to android studio. Ive rebuild the app also.

like image 614
Ryan Avatar asked Nov 07 '14 05:11

Ryan


1 Answers

You need to make sure all your modules that have the support library as dependency also have the compile SDK set to 21. So go to Project Structure and check all the modules on the left hand side.

like image 101
ABros Avatar answered Oct 07 '22 13:10

ABros