属性复制在Eclipse中导入HoloEverywhere和ActionbarSherlock

时间:2013-09-17 23:25:57

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

我几个小时以来一直在努力解决这个问题。我已经尝试过在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'.

非常感谢任何帮助。

2 个答案:

答案 0 :(得分:1)

如上所述:https://stackoverflow.com/a/19113424/1102276,您必须将v1.6.8用于HoloEverywhere库以消除错误(https://github.com/Prototik/HoloEverywhere/releases/tag/v1.6.8

答案 1 :(得分:0)

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