突然间我遇到了一个问题。问这个问题可能很傻,但是发这个帖子是因为我不知道在这种情况下该怎么做。
我不知道这是否是一个错误。
实际上,我在attrs.xml中遇到了问题,每当我试图保存带有以下错误的项目控制台提示时,我都会遇到问题。我不知道这个文件在res>values中的位置,我只找到了styles.xml、dimens.xml和strings.xml,但没有找到attrs.xml。其次,当我遇到这个问题时,R.java文件也没有被创建。
请帮助我解决这个问题,如果您需要找到错误,请告诉我其他文件。
错误是:
[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发布于 2014-03-09 15:04:48
我删除了库appcompat_v7,它用于为API 11的较低版本使用Action。
按照以下步骤:
右键单击项目>属性>选择"Android“
在“库”下,移除所需的库。
也许有些库包含其他库,所以您无法从尝试过的地方删除它。
https://stackoverflow.com/questions/22283279
复制相似问题