attrs.xml中的错误

时间:2014-03-09 14:16:03

标签: android xml eclipse

突然间我遇到了一个问题。提出这个问题可能很愚蠢但因为我不知道在这种情况下该做什么。

我不知道是否有错误。

实际上,我在 attrs.xml 中遇到问题,每当我尝试保存项目控制台提示时出现以下错误。我不知道这个文件的位置,因为res>值我只找到 styles.xml dimens.xml strings.xml 但没有 attrs.xml 。其次,一旦遇到这个问题,R.java文件也没有被创建。

Devs,只是帮我解决这个问题,让我知道你是否需要找到任何其他文件来找到错误。

错误是:

[2014-03-09 19:13:31 - Pocket Weather] E:\Workspace\appcompat_v7\res\values\attrs.xml:32: error: Attribute "windowActionBar" has already been defined
[2014-03-09 19:13:31 - Pocket Weather] E:\Workspace\appcompat_v7\res\values\attrs.xml:33: error: Attribute "windowActionBarOverlay" has already been defined
[2014-03-09 19:13:31 - Pocket Weather] E:\Workspace\appcompat_v7\res\values\attrs.xml:34: error: Attribute "windowSplitActionBar" has already been defined
[2014-03-09 19:13:31 - Pocket Weather] E:\Workspace\appcompat_v7\res\values\attrs.xml:45: error: Attribute "actionBarTabStyle" has already been defined
[2014-03-09 19:13:31 - Pocket Weather] E:\Workspace\appcompat_v7\res\values\attrs.xml:46: error: Attribute "actionBarTabBarStyle" has already been defined
[2014-03-09 19:13:31 - Pocket Weather] E:\Workspace\appcompat_v7\res\values\attrs.xml:47: error: Attribute "actionBarTabTextStyle" has already been defined
[2014-03-09 19:13:31 - Pocket Weather] E:\Workspace\appcompat_v7\res\values\attrs.xml:48: error: Attribute "actionOverflowButtonStyle" has already been defined
[2014-03-09 19:13:31 - Pocket Weather] E:\Workspace\appcompat_v7\res\values\attrs.xml:50: error: Attribute "actionBarStyle" has already been defined
[2014-03-09 19:13:31 - Pocket Weather] E:\Workspace\appcompat_v7\res\values\attrs.xml:58: error: Attribute "actionBarSplitStyle" has already been defined
[2014-03-09 19:13:31 - Pocket Weather] E:\Workspace\appcompat_v7\res\values\attrs.xml:66: error: Attribute "actionBarWidgetTheme" has already been defined
[2014-03-09 19:13:31 - Pocket Weather] E:\Workspace\appcompat_v7\res\values\attrs.xml:69: error: Attribute "actionBarSize" has already been defined
[2014-03-09 19:13:31 - Pocket Weather] E:\Workspace\appcompat_v7\res\values\attrs.xml:71: error: Attribute "actionBarDivider" has already been defined
[2014-03-09 19:13:31 - Pocket Weather] E:\Workspace\appcompat_v7\res\values\attrs.xml:73: error: Attribute "actionBarItemBackground" has already been defined
[2014-03-09 19:13:31 - Pocket Weather] E:\Workspace\appcompat_v7\res\values\attrs.xml:76: error: Attribute "actionMenuTextAppearance" has already been defined
[2014-03-09 19:13:31 - Pocket Weather] E:\Workspace\appcompat_v7\res\values\attrs.xml:78: error: Attribute "actionMenuTextColor" has already been defined
[2014-03-09 19:13:31 - Pocket Weather] E:\Workspace\appcompat_v7\res\values\attrs.xml:80: error: Attribute "homeAsUpIndicator" has already been defined
[2014-03-09 19:13:31 - Pocket Weather] E:\Workspace\appcompat_v7\res\values\attrs.xml:82: error: Attribute "textAppearanceLargePopupMenu" has already been defined

1 个答案:

答案 0 :(得分:11)

我删除了库appcompat_v7,该库用于将操作栏用于API 11的较低版本。

按照步骤:

右键点击您的项目>属性>选择“Android”

在“库”下,删除所需的库。

可能有些库包含其他库,因此您无法将其从您尝试过的地方删除。