2014-10-18 93 views
19

我刚刚更新了我的库,当Android 5.0上午发布时更新支持库后出现错误

得到更新的文件之一是android-support-v7。在那之后我一直得到这些错误

[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\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-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\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-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\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-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\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-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\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-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:33: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabText'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:37: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabText'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:41: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabText'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:65: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionMode.Title'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:69: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionMode.Subtitle'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:45: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Menu'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:49: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:53: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:57: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title.Inverse'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:61: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle.Inverse'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:178: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ProgressBar.Horizontal'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:182: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ProgressBar'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:113: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Spinner'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:115: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Spinner'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:110: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.DropDownItem.Spinner'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:107: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ListView.DropDown'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:121: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ListView'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:126: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ListPopupWindow'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:138: error: Error: No resource found that matches the given name: attr 'android:overlapAnchor'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:143: error: Error: No resource found that matches the given name: attr 'android:overlapAnchor'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:129: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.PopupMenu'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:132: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.PopupMenu'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:146: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Large'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:150: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Small'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:154: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Large'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:158: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Small'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:164: error: Error retrieving parent for item: No resource found that matches the given name '@android:TextAppearance.Material.SearchResult.Title'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:168: error: Error retrieving parent for item: No resource found that matches the given name '@android:TextAppearance.Material.SearchResult.Subtitle'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:172: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.AutoCompleteTextView'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:174: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.AutoCompleteTextView'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:93: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Toolbar.Button.Navigation'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:97: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base.xml:101: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base_text.xml:62: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Button'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base_text.xml:20: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base_text.xml:22: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display4'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base_text.xml:24: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display3'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base_text.xml:26: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display2'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base_text.xml:28: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display1'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base_text.xml:30: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Headline'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base_text.xml:32: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Title'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base_text.xml:34: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Subhead'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base_text.xml:36: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body2'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base_text.xml:38: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body1'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base_text.xml:40: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Caption'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base_text.xml:42: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Menu'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 
[2014-10-18 01:05:34 - android-support-v7-appcompat] C:\Program Files (x86)\adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat\res\values-v21\styles_base_text.xml:60: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Button'. 
[2014-10-18 01:05:34 - android-support-v7-appcompat] 

我试图从SDK管理器删除库并重新下载

我试图删除库,并刷新我的项目和删除每一行中关于Android的构建路径 - 支持-V7-程序兼容性

我,当我重新建立洗澡我导入库中,然后将其添加到我的项目路径

仍然没有工作,我使用ADT(Android开发工具)的Android不工作室

回答

39

修改project.properties文件,其中有:

target=android-19 

target=android-21 

后改变上述接近项目,然后公开和廉洁

+0

与appcompat一起工作,但不与mediarouter一起工作...但是,非常感谢...你救了我去Android Studio – MohammedAlSafwan 2014-10-18 09:24:44

+5

谢谢,这帮助我。对于其他人来说,只需要注意一下,你只需要为android-support-v7项目设置这个目标。您可以保持自己的项目设置不变。 – 2014-10-18 15:27:05

+0

^错误:http://stackoverflow.com/questions/23231174/appcompat-v7-error-retrieving-parent-for-item-no-resource-found-that-matches-t – worked 2014-10-19 19:39:37

2

为了切换到COMPAT和支持库的API V21版本中,您还可以切换到compileSdkVersion 21和buildToolsVersion '21 .0.1' 。

在Android Studio中,你的build.gradle设置这些。在ADT,我不记得如何设置。

+0

谢谢你试图回答我希望有人在Android Studio将使用 – MohammedAlSafwan 2014-10-18 09:26:24

0

创建一个新的工作空间后,尝试创建与分SDK 2.3的新的Android项目,然后它会自动导入您的appcompact LIB之后,它会工作这就是工作,我

0

我解决了类似的错误;

1)我安装了21 API和SDK管理器。

2)我改变了我的项目的构建目标21 和 我改变V7-程序兼容性库的构建目标21

,最后我想支持库项目(V7-程序兼容性或V7-网格布局)必须在工作中。

0

如果使用eclipse确保你已经从SDK管理器 -

  1. 的是Android 5.0(API 21)-SDK平台
  2. 支持Android库
  3. 支持Android库
  4. 谷歌播放更新这些工具Services
  5. Google Repository
  6. 最新版本工具

更新全部导入v7项目并打开项目后。属性 android-support-v7-appcompat文件并将目标从target = android-19更改为target = android-21

清理项目,你很好走。

相关问题