Android support library appcompat_v7 v21.0.1 gives an error

Every thing worked perfectly before updating sdk and support libraries. After the update, I just added a support library (on average, I imported a support library with resources). as soon as I add it, I get the following error:

Error:

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

After changing my build goal to 21 of 17, I get these errors

 [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] 

I tried many things, for example, importing a project, changing the project.properties file again, etc., I can not solve the problem.

please help me in advance.

+5
source share
2 answers

Modify the project.properties file, which has:

 target=android-19 

to

 target=android-21 

after the changes above the closed project, then open and clean

+5
source

I would like to comment, but my reputation is too low. I encounter the same problem when I change my computer, so I used to export the library from my old computer and imported it into a new afaik. You can try, but I can not guarantee that it works for you. You can use my exported library if you want. Although this doesn't make much sense, for some reason it worked for me after that. https://www.dropbox.com/s/ly9mhmlvthk15f9/Libraries.zip?dl=0

0
source

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


All Articles