The title attribute has already been defined when there are dependencies on the android 1.0.0 plot

every time I synchronize gradle with compilation "com.androidplot: androidplot-core: 1.0.0", I have an error already defined

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\23.0.2\aapt.exe'' finished with non-zero exit value 1
Run codeHide result

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')

}
Run codeHide result
+4
source share
1 answer

I was able to reproduce the problem by first creating a sample project that uses Androidplot, and then creating my own attrs.xml that defines the style with the title attribute. This release contains some context for what is happening.

, attrs.xml, attr androidplot.

, :

1 - , duplicate. ( )

- -

2 - 24.0.2:

android {
    buildToolsVersion '24.0.2'
    ...
}

, , , , , , , .

+7

Source: https://habr.com/ru/post/1652711/


All Articles