当具有 android 绘图依赖项 1.0.0 时,属性 "title" 已被定义

Attribute "title" has already been define when have android plot dependencies 1.0.0

每次我将 gradle 与编译 'com.androidplot:androidplot-core:1.0.0' 同步时,我都会遇到已定义的错误

The Error

Error:(309) Attribute "title" has already been defined
Error:(316) Attribute "titleTextColor" has already been defined
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Guren\AppData\Local\Android\sdk\build-tools.0.2\aapt.exe'' finished with non-zero exit value 1

My Dependencies
dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    testCompile 'junit:junit:4.12'
  compile 'com.android.support:appcompat-v7:23.4.0'
   // compile 'com.android.support:recyclerview-v7:23.4.0'
   // compile 'com.android.support:cardview-v7:23.4.0'
    //Material Acr Menu


   compile 'com.androidplot:androidplot-core:1.0.0'
    // ListView
   // compile 'com.baoyz.swipemenulistview:library:1.3.0'
    // MathView
    compile 'io.github.kexanie.library:MathView:0.0.6'
    // Tesseract - OCR
    compile project(':libraries:tess-two')
    // GraphView
    // compile files('libs/GraphView-4.1.0.jar')

}

我能够通过首先创建一个使用 Androidplot 的示例项目然后创建我自己的 attrs.xml 来重现该问题,该项目定义了带有 title 属性的样式。 This issue report 提供有关正在发生的事情的一些背景信息。

很可能您的应用程序或您的其他依赖项之一在其中定义了 styleables attrs.xml 重用了一些与 androidplot 相同的 attr 名称。

似乎至少有两个解决方案:

1 - 删除定义重复属性的依赖项之一。 (不是很好的解决方案)

-或-

2 - 将构建工具更新到 24.0.2:

android {
    buildToolsVersion '24.0.2'
    ...
}

不幸的是,考虑到样式命名空间的应用方式,这根本就是一个问题,但至少它似乎在最新的构建工具中得到了解决。