当前位置: 首页 > 知识库问答 >
问题:

我的Android应用程序正在成功地同步,但当运行该应用程序时,却给出错误执行任务“:app:MergedebugResources”失败。

马弘和
2023-03-14
apply plugin: 'com.android.application'

android {

    compileSdkVersion 28
    defaultConfig {
        minSdkVersion 16
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        signingConfig signingConfigs.config
        vectorDrawables.useSupportLibrary = true
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            signingConfig signingConfigs.config
        }
        debug {
            signingConfig signingConfigs.config
        }
    }
    productFlavors {
    }
}

repositories {
    mavenCentral()
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support:design:28.0.0'
    implementation 'com.android.support:support-v4:28.0.0'
    implementation 'com.android.support:cardview-v7:28.0.0'
    implementation 'com.google.android.gms:play-services-auth:16.0.1'
    implementation 'com.google.firebase:firebase-auth:16.2.0'
    implementation 'com.google.firebase:firebase-database:16.1.0'
    implementation 'com.google.firebase:firebase-crash:16.2.1'
//    implementation 'com.facebook.android:facebook-android-sdk:4.29.0'
    implementation 'com.github.paolorotolo:appintro:4.1.0'
    implementation 'com.jakewharton:butterknife:8.4.0'
    implementation 'uk.co.samuelwall:material-tap-target-prompt:1.8.3'
    implementation 'com.google.code.gson:gson:2.8.2'
    implementation 'com.android.support:support-vector-drawable:28.0.0'
    testImplementation 'junit:junit:4.12'
    annotationProcessor 'com.jakewharton:butterknife-compiler:8.4.0'
//    debugImplementation 'com.facebook.stetho:stetho:1.0.0'
}

apply plugin: 'com.google.gms.google-services'

请访问https://help.gradle.org获取更多帮助

在1M 36s 13个可操作任务中生成失败:12个已执行,1个最新

共有1个答案

宰父跃
2023-03-14

正如您的错误所说:

配置为“”的资源“attr/icontint”的值重复。

因此您有两个或多个名为iconTint的属性。只要检查你的资源,你可以找到重复的修复它

 类似资料: