首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >attrs.xml中的错误

attrs.xml中的错误
EN

Stack Overflow用户
提问于 2014-03-09 14:16:02
回答 1查看 4.7K关注 0票数 2

突然间我遇到了一个问题。问这个问题可能很傻,但是发这个帖子是因为我不知道在这种情况下该怎么做。

我不知道这是否是一个错误。

实际上,我在attrs.xml中遇到了问题,每当我试图保存带有以下错误的项目控制台提示时,我都会遇到问题。我不知道这个文件在res>values中的位置,我只找到了styles.xmldimens.xmlstrings.xml,但没有找到attrs.xml。其次,当我遇到这个问题时,R.java文件也没有被创建。

请帮助我解决这个问题,如果您需要找到错误,请告诉我其他文件。

错误是:

代码语言:javascript
复制
[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
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-03-09 15:04:48

我删除了库appcompat_v7,它用于为API 11的较低版本使用Action。

按照以下步骤:

右键单击项目>属性>选择"Android“

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

也许有些库包含其他库,所以您无法从尝试过的地方删除它。

票数 11
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/22283279

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档