Error: (155) The original attribute defined here in Android Studio 2.3.1

dependencies {compile fileTree (dir: 'libs', include: ['* .jar'])

compile 'com.android.support:design:25.3.1'
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:support-v4:25.3.1'
compile 'com.android.support:preference-v7:25.3.1'
compile 'com.google.code.findbugs:jsr305:3.0.0'
compile 'com.squareup.okhttp3:okhttp:3.6.0'
compile 'com.google.android.gms:play-services:7.0.0'
compile 'com.google.code.gson:gson:2.8.0'
compile 'com.android.volley:volley:1.0.0'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'ch.acra:acra:4.9.2'
compile 'com.github.yukuku:ambilwarna:2.0.1'
compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha7'


testCompile 'junit:junit:4.12'
}

This is the gradle dependency code. I get such errors. When I click on this error, then the code shows .cannot to find the deviation of the element 'recources'. D: \ AndroidProjects \ Tech \ application \ assembly \ intermediate \ Res \\ merged values ​​\ Debug \ values.xml Error: (360) The "navigationMode" attribute is already defined with an incompatible format.

Error:(155) Original attribute defined here.

Error:(367) Attribute "displayOptions" already defined with incompatible format.

Error:(687) Attribute "backgroundTintMode" already defined with incompatible format.

Error:(367) Attribute "displayOptions" already defined with incompatible format.

Error:(360) Attribute "navigationMode" already defined with incompatible format.

Error:(419) Attribute "actionBarSize" already defined with incompatible format.

Error:(70) Original attribute defined here.

Error:(482) Attribute "buttonTintMode" already defined with incompatible format.

Error:(7) Original attribute defined here.

Error:(102) Original attribute defined here.

Error:(576) Attribute "showDividers" already defined with incompatible format.

Error:(360) Attribute "navigationMode" already defined with incompatible format.

Error:(184) Original attribute defined here.

Error:(601) Attribute "showAsAction" already defined with incompatible format.

Error:(191) Original attribute defined here.

Error:(52) Original attribute defined here.

Error:(155) Original attribute defined here.

Error:(102) Original attribute defined here.

Error:(419) Attribute "actionBarSize" already defined with incompatible format.

Error:(7) Original attribute defined here.

Error:(482) Attribute "buttonTintMode" already defined with incompatible format.

Error:(70) Original attribute defined here.

Error:(576) Attribute "showDividers" already defined with incompatible format.

Error:(191) Original attribute defined here.

Error:(601) Attribute "showAsAction" already defined with incompatible format.

Error:(184) Original attribute defined here.

Error:(687) Attribute "backgroundTintMode" already defined with incompatible format.

Error:(52) Original attribute defined here.

Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
+4
source share
1 answer

You have the same property name as other controls, and change the property name of your custom control.

-1

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


All Articles