gpt4 book ai didi

android - 在我自己的项目中使用 ActionBarSherlock 作为库

转载 作者:太空狗 更新时间:2023-10-29 12:53:41 25 4
gpt4 key购买 nike

我正在使用 ActionBarSherlock在我的 Android 2.1 API 7 项目上实现操作栏。 (使用 Eclipse IDE)

为了使用sherlock,我在Eclipse 上导入了sherlock 库作为现有项目。然后,我将它作为库添加到我自己的项目中。

但是,在我自己的项目中,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'.

...

为什么??

(我已经将 Sherlock 的目标 SDK 设置为 Android 3.2。)

最佳答案

将目标SDK设置为Android 3.2(版本14)或以上。如果我没记错的话,您想要的版本可以是 Android 1.5(版本 7?)以上的任何版本。

关于android - 在我自己的项目中使用 ActionBarSherlock 作为库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9163171/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com