已经定义了错误属性... values.xml和build.gradle

时间:2017-10-08 21:27:28

标签: android build.gradle

我知道这个问题已被问过很多..但我无法解决这个问题。 我尝试同步build.gradle时收到此消息:

... /应用/建造/中间体/ RES /合并/调试/值/ values.xml

Error:(1589) Attribute "navigationMode" already defined with incompatible format.
Error:(979) Original attribute defined here.
Error:(1596) Attribute "displayOptions" already defined with incompatible format.
Error:(690) Original attribute defined here.
Error:(1613) Attribute "layout_scrollFlags" already defined with incompatible format.
Error:(864) Original attribute defined here.
Error:(1215) Original attribute defined here.
Error:(1860) Attribute "tabMode" already defined with incompatible format.
Error:(1146) Original attribute defined here.
Error:(1863) Attribute "tabGravity" already defined with incompatible format.
Error:(1138) Original attribute defined here.
Error:(1868) Attribute "passwordToggleTintMode" already defined with incompatible format.
Error:(1028) Original attribute defined here.
Error:(1880) Attribute "buttonGravity" already defined with incompatible format.
Error:(562) Original attribute defined here.
Error:(1887) Attribute "backgroundTintMode" already defined with incompatible format.
Error:(169) Original attribute defined here.
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt

这是我的build.gradle(app):

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.android.support:appcompat-v7:25.3.1'
    compile 'com.android.support:design:25.3.1'
    compile 'com.android.support:support-v4:25.3.1'
    compile 'cn.pedant.sweetalert:library:1.3'
    compile 'info.hoang8f:fbutton:1.0.5'
    testCompile 'junit:junit:4.12'
    compile 'org.jetbrains:annotations-java5:15.0'
    compile 'devlight.io:navigationtabbar:1.2.5'
    compile 'com.patrickpissurno:ripple-effect:1.3.1'
    compile 'com.android.support:cardview-v7:25.3.1'
}

我不明白我错在哪里......

0 个答案:

没有答案