我正在使用ActionBarSherlock在我的Android 2.1 API 7项目上实现操作栏。 (使用Eclipse IDE)在我自己的项目中使用ActionBarSherlock作为库
为了使用sherlock,我导入了sherlock库作为Eclipse上的现有项目。然后,我将它作为库添加到我自己的项目中。
然而,在我自己的项目中,Eclipse的控制台显示我以下错误:
JakeWharton-ActionBarSherlock-436230d/library/res/values-v11/abs__styles.xml:4: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo'.
JakeWharton-ActionBarSherlock-436230d/library/res/values-v11/abs__styles.xml:48: error: Error: No resource found that matches the given name: attr 'android:actionBarSize'.
JakeWharton-ActionBarSherlock-436230d/library/res/values-v11/abs__styles.xml:49: error: Error: No resource found that matches the given name: attr 'android:actionBarStyle'.
...
为什么?
(我已经设定目标SDK到Android 3.2福尔摩斯。)
我为Sherlock设置了Android 3.2的目标SDK。 – 2012-02-07 08:02:34
你也需要在你的项目上做同样的事情。 – RobGThai 2012-02-07 10:42:13
为什么我需要在自己的项目上做同样的事情? sherlock是否应该用于支持旧的android API(例如android v2.1 API7)上的本机操作栏?你的回答也同意我的观点,为什么你的评论与你的回答冲突? – 2012-02-07 15:16:42