【发布时间】:2015-01-07 03:31:04
【问题描述】:
在我的项目中,我有一个模块 abc:
//abc module (lib) dependency
dependencies {
compile 'com.android.support:support-v4:21.0.3'
}
还有我的应用的依赖:
dependencies {
compile project(':abc')
}
错误是:
“Attribute ”mnp“ has already been defined”
“Attribute ”xyz“ has already been defined”
...
我发现所有这些属性都在模块 abc 的declare-styleable 中定义,并且它们很多。我不知道他们在哪里产生了副本,因为我可以从 Eclipse 而不是 Android Studio 正常运行。有人建议手动重命名这些属性,但我认为这很耗时。
有更好的解决方案吗?谢谢!
【问题讨论】:
标签: android gradle attributes android-studio duplicates