A resource was not found that matches the specified name: attr 'android: actionModeShareDrawable'

Everything that I try to synchronize Gradle, this error occurs. I am using SDK 21 and I have all updates installed. I tried removing Value.xml by clearing Gradle, synchronizing it and trying to change the SDK version. and yet he appeared.

that's what went 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 want the project to see a message, send me a message. Im really new to android studio. Ive also been rebuilding the application.

+5
source share
2 answers

You need to make sure that all of your modules that have a support library as a dependency also have a compilation SDK installed in 21. So, go to the Project Structure and check all the modules on the left side.

+5
source

Updating compileSdkVersion and buildToolsVersion for the latest available to me. These settings worked for me:

compileSdkVersion 26

buildToolsVersion '26 .0.1 '

0
source

Source: https://habr.com/ru/post/1206389/


All Articles