Android 使用ActionBarSherlock 4.1版时未找到资源错误?

Android 使用ActionBarSherlock 4.1版时未找到资源错误?,android,android-actionbar,actionbarsherlock,Android,Android Actionbar,Actionbarsherlock,我已经将ABS作为一个库项目添加到我的android应用程序中,并将库和我的项目的目标版本设置为API15,但我仍然收到这些错误。有人能告诉我我做错了什么吗 [2013-04-03 13:00:25 - com.hello.home.Login] C:\Documents and Settings\User\My Documents\My Workspace\library\res\layout\abs__search_dropdown_item_icons_2line.xml:21: erro

我已经将ABS作为一个库项目添加到我的android应用程序中,并将库和我的项目的目标版本设置为API15,但我仍然收到这些错误。有人能告诉我我做错了什么吗

[2013-04-03 13:00:25 - com.hello.home.Login] C:\Documents and Settings\User\My Documents\My Workspace\library\res\layout\abs__search_dropdown_item_icons_2line.xml:21: error: Error: No resource found that matches the given name (at 'paddingLeft' with value '@dimen/abs__dropdownitem_text_padding_left').
[2013-04-03 13:00:25 - com.hello.home.Login] C:\Documents and Settings\User\My Documents\My Workspace\library\res\layout\abs__search_dropdown_item_icons_2line.xml:21: error: Error: No resource found that matches the given name (at 'layout_height' with value '?attr/searchResultListItemHeight').
[2013-04-03 13:00:25 - com.hello.home.Login] C:\Documents and Settings\User\My Documents\My Workspace\library\res\layout\abs__search_dropdown_item_icons_2line.xml:29: error: Error: No resource found that matches the given name (at 'layout_width' with value '@dimen/abs__dropdownitem_icon_width').
[2013-04-03 13:00:25 - com.hello.home.Login] C:\Documents and Settings\User\My Documents\My Workspace\library\res\layout\abs__search_dropdown_item_icons_2line.xml:38: error: Error: No resource found that matches the given name (at 'src' with value '?attr/searchViewEditQuery').
[2013-04-03 13:00:25 - com.hello.home.Login] C:\Documents and Settings\User\My Documents\My Workspace\library\res\layout\abs__search_dropdown_item_icons_2line.xml:38: error: Error: No resource found that matches the given name (at 'background' with value '?attr/searchViewEditQueryBackground').
[2013-04-03 13:00:25 - com.hello.home.Login] C:\Documents and Settings\User\My Documents\My Workspace\library\res\layout\abs__search_dropdown_item_icons_2line.xml:62: error: Error: No resource found that matches the given name (at 'textAppearance' with value '?attr/textAppearanceSearchResultSubtitle').
[2013-04-03 13:00:25 - com.hello.home.Login] C:\Documents and Settings\User\My Documents\My Workspace\library\res\layout\abs__search_dropdown_item_icons_2line.xml:78: error: Error: No resource found that matches the given name (at 'textAppearance' with value '?attr/textAppearanceSearchResultTitle').
[2013-04-03 13:00:25 - com.hello.home.Login] C:\Documents and Settings\User\My Documents\My Workspace\library\res\layout\abs__search_view.xml:41: error: Error: No resource found that matches the given name (at 'src' with value '?attr/searchViewSearchIcon').
[2013-04-03 13:00:25 - com.hello.home.Login] C:\Documents and Settings\User\My Documents\My Workspace\library\res\layout\abs__search_view.xml:41: error: Error: No resource found that matches the given name (at 'contentDescription' with value '@string/abs__searchview_description_search').
[2013-04-03 13:00:25 - com.hello.home.Login] C:\Documents and Settings\User\My Documents\My Workspace\library\res\layout\abs__search_view.xml:63: error: Error: No resource found that matches the given name (at 'layout_width' with value '@dimen/abs__dropdownitem_icon_width').
[2013-04-03 13:00:25 - com.hello.home.Login] C:\Documents and Settings\User\My Documents\My Workspace\library\res\layout\abs__search_view.xml:63: error: Error: No resource found that matches the given name (at 'layout_marginLeft' with value '@dimen/abs__dropdownitem_text_padding_left').
[2013-04-03 13:00:25 - com.hello.home.Login] C:\Documents and Settings\User\My Documents\My Workspace\library\res\layout\abs__search_view.xml:63: error: Error: No resource found that matches the given name (at 'src' with value '?attr/searchViewSearchIcon').
[2013-04-03 13:00:25 - com.hello.home.Login] C:\Documents and Settings\User\My Documents\My Workspace\library\res\layout\abs__search_view.xml:75: error: Error: No resource found that matches the given name (at 'background' with value '?attr/searchViewTextField').
[2013-04-03 13:00:25 - com.hello.home.Login] C:\Documents and Settings\User\My Documents\My Workspace\library\res\layout\abs__search_view.xml:84: error: Error: No resource found that matches the given name (at 'style' with value '?attr/searchAutoCompleteTextView').
[2013-04-03 13:00:25 - com.hello.home.Login] C:\Documents and Settings\User\My Documents\My Workspace\library\res\layout\abs__search_view.xml:84: error: Error: No resource found that matches the given name (at 'minWidth' with value '@dimen/abs__search_view_text_min_width').
[2013-04-03 13:00:25 - com.hello.home.Login] C:\Documents and Settings\User\My Documents\My Workspace\library\res\layout\abs__search_view.xml:84: error: Error: No resource found that matches the given name (at 'paddingLeft' with value '@dimen/abs__dropdownitem_text_padding_left').
[2013-04-03 13:00:25 - com.hello.home.Login] C:\Documents and Settings\User\My Documents\My Workspace\library\res\layout\abs__search_view.xml:84: error: Error: No resource found that matches the given name (at 'paddingRight' with value '@dimen/abs__dropdownitem_text_padding_right').
[2013-04-03 13:00:25 - com.hello.home.Login] C:\Documents and Settings\User\My Documents\My Workspace\library\res\layout\abs__search_view.xml:84: error: Error: No resource found that matches the given name (at 'contentDescription' with value '@string/abs__searchview_description_query').
[2013-04-03 13:00:25 - com.hello.home.Login] C:\Documents and Settings\User\My Documents\My Workspace\library\res\layout\abs__search_view.xml:106: error: Error: No resource found that matches the given name (at 'background' with value '?attr/selectableItemBackground').
[2013-04-03 13:00:25 - com.hello.home.Login] C:\Documents and Settings\User\My Documents\My Workspace\library\res\layout\abs__search_view.xml:106: error: Error: No resource found that matches the given name (at 'src' with value '?attr/searchViewCloseIcon').
[2013-04-03 13:00:25 - com.hello.home.Login] C:\Documents and Settings\User\My Documents\My Workspace\library\res\layout\abs__search_view.xml:106: error: Error: No resource found that matches the given name (at 'contentDescription' with value '@string/abs__searchview_description_clear').
[2013-04-03 13:00:25 - com.hello.home.Login] C:\Documents and Settings\User\My Documents\My Workspace\library\res\layout\abs__search_view.xml:121: error: Error: No resource found that matches the given name (at 'background' with value '?attr/searchViewTextFieldRight').
[2013-04-03 13:00:25 - com.hello.home.Login] C:\Documents and Settings\User\My Documents\My Workspace\library\res\layout\abs__search_view.xml:128: error: Error: No resource found that matches the given name (at 'background' with value '?attr/selectableItemBackground').
[2013-04-03 13:00:25 - com.hello.home.Login] C:\Documents and Settings\User\My Documents\My Workspace\library\res\layout\abs__search_view.xml:128: error: Error: No resource found that matches the given name (at 'src' with value '?attr/searchViewGoIcon').
[2013-04-03 13:00:25 - com.hello.home.Login] C:\Documents and Settings\User\My Documents\My Workspace\library\res\layout\abs__search_view.xml:128: error: Error: No resource found that matches the given name (at 'contentDescription' with value '@string/abs__searchview_description_submit').
[2013-04-03 13:00:25 - com.hello.home.Login] C:\Documents and Settings\User\My Documents\My Workspace\library\res\layout\abs__search_view.xml:142: error: Error: No resource found that matches the given name (at 'src' with value '?attr/searchViewVoiceIcon').
[2013-04-03 13:00:25 - com.hello.home.Login] C:\Documents and Settings\User\My Documents\My Workspace\library\res\layout\abs__search_view.xml:142: error: Error: No resource found that matches the given name (at 'background' with value '?attr/selectableItemBackground').
[2013-04-03 13:00:25 - com.hello.home.Login] C:\Documents and Settings\User\My Documents\My Workspace\library\res\layout\abs__search_view.xml:142: error: Error: No resource found that matches the given name (at 'contentDescription' with value '@string/abs__searchview_description_voice').

我猜这就是你所做的:

我能记得的唯一一件事是将我的应用程序的项目构建目标设置为API级别17(15也可以)

我的名单是:

<uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="16" />

ActionBarSherlock库项目或您自己的应用程序项目是否在Eclipse中显示任何错误(如果您使用的是IDE)?这可能会导致资源文件(R.java)无法生成,从而导致无法找到资源的错误。