【问题标题】:Attribute duplication importing HoloEverywhere and ActionbarSherlock in EclipseEclipse中导入HoloEverywhere和ActionbarSherlock的属性复制
【发布时间】:2013-09-17 23:25:57
【问题描述】:

我已经为这个问题苦苦挣扎了好几个小时了。我已经尝试了在 StackOverflow 上找到的所有提示,但它们对我没有帮助。

问题:

我在 Eclipse 中导入了 HoloEverywhere。然后我将 ActionbarSherlock 导入 HoloEverywhere,正如 here 所说,只是为了得到一堆错误。此外,没有为 HoloEverywhere 项目生成 R.java(我尝试清理所有项目,但没有工作)。

从日志输出来看,我认为 ActionbarSherlock 和 HoloEverywhere 项目中有重复的属性名称。我该如何解决?

这是日志的一部分:

[2013-09-18 02:34:22 - library] D:\HoloEverywhere-master\library\res\values-v11\themes.xml:28: error: Error: No resource found that matches the given name: attr 'android:textAppearanceLargePopupMenu'. [2013-09-18 02:34:22 - library] D:\HoloEverywhere-master\library\res\values-v11\themes.xml:29: error: Error: No resource found that matches the given name: attr 'android:textAppearanceSmallPopupMenu'. [2013-09-18 02:34:22 - library] D:\HoloEverywhere-master\library\res\values-v11\themes.xml:30: error: Error: No resource found that matches the given name: attr 'android:windowMinWidthMajor'. [2013-09-18 02:34:22 - library] D:\HoloEverywhere-master\library\res\values-v11\themes.xml:31: error: Error: No resource found that matches the given name: attr 'android:windowMinWidthMinor'. [2013-09-18 02:34:22 - library] D:\HoloEverywhere-master\library\res\values\themes.xml:152: error: Error: No resource found that matches the given name: attr 'android:listChoiceBackgroundIndicator'. [2013-09-18 02:34:22 - library] D:\HoloEverywhere-master\library\res\values-v11\themes.xml:43: error: Error: No resource found that matches the given name: attr 'android:activatedBackgroundIndicator'. [2013-09-18 02:34:22 - library] D:\HoloEverywhere-master\library\res\values-v11\themes.xml:44: error: Error: No resource found that matches the given name: attr 'android:dialogTheme'. [2013-09-18 02:34:22 - library] D:\HoloEverywhere-master\library\res\values-v11\themes.xml:45: error: Error: No resource found that matches the given name: attr 'android:dividerHorizontal'. [2013-09-18 02:34:22 - library] D:\HoloEverywhere-master\library\res\values-v11\themes.xml:46: error: Error: No resource found that matches the given name: attr 'android:dividerVertical'. [2013-09-18 02:34:22 - library] D:\HoloEverywhere-master\library\res\values-v11\themes.xml:47: error: Error: No resource found that matches the given name: attr 'android:textAppearanceLargePopupMenu'. [2013-09-18 02:34:22 - library] D:\HoloEverywhere-master\library\res\values-v11\themes.xml:48: error: Error: No resource found that matches the given name: attr 'android:textAppearanceSmallPopupMenu'. [2013-09-18 02:34:22 - library] D:\HoloEverywhere-master\library\res\values-v11\themes.xml:49: error: Error: No resource found that matches the given name: attr 'android:windowMinWidthMajor'. [2013-09-18 02:34:22 - library] D:\HoloEverywhere-master\library\res\values-v11\themes.xml:50: error: Error: No resource found that matches the given name: attr 'android:windowMinWidthMinor'. [2013-09-18 02:34:22 - library] D:\HoloEverywhere-master\library\res\values\themes.xml:188: error: Error: No resource found that matches the given name: attr 'android:windowActionBar'. [2013-09-18 02:34:22 - library] D:\HoloEverywhere-master\library\res\values\themes.xml:238: error: Error: No resource found that matches the given name: attr 'android:windowActionBar'. [2013-09-18 02:34:22 - library] D:\HoloEverywhere-master\library\res\values\themes.xml:274: error: Error: No resource found that matches the given name: attr 'android:windowActionBar'.

非常感谢任何帮助。

【问题讨论】:

    标签: java android xml actionbarsherlock android-holo-everywhere


    【解决方案1】:

    如此处所述:https://stackoverflow.com/a/19113424/1102276,您必须为 HoloEverywhere 库使用 v1.6.8 才能消除错误 (https://github.com/Prototik/HoloEverywhere/releases/tag/v1.6.8)

    【讨论】:

      【解决方案2】:

      保留 holoeverywhere 库的 actionbar sherlock 部分,但将其从实际的应用程序项目中删除,我遇到了同样的问题并修复了它。还要确保 android-support 库是相同的。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2012-12-21
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2013-10-04
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多