android-support-v7-appcompat支持库与android 2.2不兼容

android-support-v7-appcompat支持库与android 2.2不兼容,android,Android,当我在我的工作区中导入android-support-v7-appcompat支持库并将其添加到我的带有android 4.4的项目中时,其工作正常,但低于api级别11,其不工作。 在我的项目中,我将其用于动作栏。 当我使用安卓2.2时,我的控制台会出现错误。谢谢 [2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml

当我在我的工作区中导入android-support-v7-appcompat支持库并将其添加到我的带有android 4.4的项目中时,其工作正常,但低于api级别11,其不工作。 在我的项目中,我将其用于动作栏。 当我使用安卓2.2时,我的控制台会出现错误。谢谢

[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:24: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:28: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:32: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar.Solid'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:36: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.Solid'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:40: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.Solid.Inverse'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:122: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionButton'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:125: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionButton'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:129: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionButton.CloseMode'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:133: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionButton.CloseMode'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:137: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionButton.Overflow'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:141: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionButton.Overflow'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:44: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar.TabBar'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:48: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.TabBar'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:52: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.TabBar.Inverse'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:56: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar.TabView'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:60: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.TabView'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:64: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.TabView.Inverse'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:68: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar.TabText'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:72: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.TabText'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:76: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.TabText.Inverse'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:80: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionMode.Inverse'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:104: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionMode.Title'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:108: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionMode.Subtitle'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:112: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionMode.Title.Inverse'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:116: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionMode.Subtitle.Inverse'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:84: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionBar.Menu'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:88: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionBar.Title'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:92: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionBar.Subtitle'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:96: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionBar.Title.Inverse'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:100: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.ActionBar.Subtitle.Inverse'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v11\styles_base.xml:26: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ProgressBar.Horizontal'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v11\styles_base.xml:30: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ProgressBar'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:159: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Spinner'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:161: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.Spinner'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:153: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.DropDownItem.Spinner'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:156: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.DropDownItem.Spinner'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:147: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ListView.DropDown'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:150: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ListView.DropDown'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:167: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ListPopupWindow'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:171: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ListPopupWindow'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:175: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.PopupMenu'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:178: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.PopupMenu'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:182: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.PopupMenu.Large'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:186: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.PopupMenu.Small'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:190: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.PopupMenu.Large'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:194: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Holo.Widget.PopupMenu.Small'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:200: error: Error retrieving parent for item: No resource found that matches the given name '@android:TextAppearance.Holo.SearchResult.Title'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:204: error: Error retrieving parent for item: No resource found that matches the given name '@android:TextAppearance.Holo.SearchResult.Subtitle'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:212: error: Error retrieving parent for item: No resource found that matches the given name '@android:TextAppearance.Holo.SearchResult.Title'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:216: error: Error retrieving parent for item: No resource found that matches the given name '@android:TextAppearance.Holo.SearchResult.Subtitle'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v11\styles_base.xml:36: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.AutoCompleteTextView'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v11\styles_base.xml:40: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.AutoCompleteTextView'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:225: error: Error: No resource found that matches the given name: attr 'android:dividerPadding'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\styles_base.xml:224: error: Error: No resource found that matches the given name: attr 'android:showDividers'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v11\themes_base.xml:31: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v11\themes_base.xml:33: error: Error: No resource found that matches the given name: attr 'android:windowActionBar'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v11\themes_base.xml:42: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v11\themes_base.xml:44: error: Error: No resource found that matches the given name: attr 'android:windowActionBar'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\themes_base.xml:31: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\themes_base.xml:41: error: Error: No resource found that matches the given name: attr 'android:actionBarWidgetTheme'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\themes_base.xml:57: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\themes_base.xml:67: error: Error: No resource found that matches the given name: attr 'android:actionBarWidgetTheme'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\themes_base.xml:83: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light.DarkActionBar'.
[2014-01-27 17:01:03 - MainActivity] F:\xevoke_workspace\android-support-v7-appcompat\res\values-v14\themes_base.xml:94: error: Error: No resource found that matches the given name: attr 'android:actionBarWidgetTheme'.
我的属性文件

# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system edit
# "ant.properties", and override values to adapt the script to your
# project structure.
#
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

# Project target.

    target=android-8
    android.library.reference.1=../android-support-v7-appcompat

这个问题有点老了,但我遇到了同样的问题(一个Git分支工作,而另一个分支不工作),结果证明它与项目的targetAndroid API有关。我的项目的目标API太低(8)(右键单击项目>属性>Android>选择所需目标)。我认为支持库(AppCompat)要求您将目标API设置为至少API级别14(Android 4.0)。请注意,目标API与最小API不同。这确实是你认为你的应用程序将支持的最高API,或者你测试过的应用程序所使用的最高API。

到目前为止,这只是一个想法:你也添加了android-support-v4兼容性库吗?你也在使用AppCompact主题吗?post project.properties fileSharj@yes我添加了android:theme=我的menifest文件中的“@style/Theme.AppCompat.Light”主题您的项目构建目标(target=android-8)是错误的,请通过project Properties>android更改它非常好我从来都不理解这个问题,但现在我来配置它