HoloEverywhere - 冲突属性

时间:2014-03-20 15:40:06

标签: android android-studio android-gradle android-holo-everywhere

我添加了HoloEverywhere的maven存储库,并增加了对库的依赖。

allprojects {
    repositories {
        mavenCentral()
        maven { url "http://192.241.191.41/repo" }
    }
}

只需将补丁设置为库。

dependencies {
    compile 'com.android.support:appcompat-v7:+'
    compile 'org.holoeverywhere:library:+@aar'
    compile fileTree(dir: 'libs', include: ['*.jar'])
}

当我尝试运行apllication时出现错误

/home/onea/projects/java/android/TestApp/app/build/exploded-aar/com.android.support/appcompat-v7/19.0.1/res/values/values.xml
Error:Attribute "spinnerMode" has already been defined
Error:Attribute "popupPromptView" has already been defined
Error:Attribute "disableChildrenWhenDisabled" has already been defined

我做错了什么? :)

1 个答案:

答案 0 :(得分:0)

我替换了依赖项中的行

compile 'org.holoeverywhere:library:+@aar' 

compile 'org.holoeverywhere:library:+'

因为编译器在晕处到处活动时显示错误并删除

compile 'com.android.support:appcompat-v7:+'