Android 渐变生成转换错误

Android 渐变生成转换错误,android,android-gradle-plugin,Android,Android Gradle Plugin,错误:任务的执行失败 “:app:transformClassesWithJarMergingForDebug” com.android.build.api.transform.TransformException:java.util.zip.zipeException:重复条目: 螺栓/聚合异常.class build.gradle文件 android { compileSdkVersion 25 buildToolsVersion '25.0.0' defaultConfig {

错误:任务的执行失败 “:app:transformClassesWithJarMergingForDebug”

com.android.build.api.transform.TransformException:java.util.zip.zipeException:重复条目: 螺栓/聚合异常.class

build.gradle文件

android {
compileSdkVersion 25
buildToolsVersion '25.0.0'

defaultConfig {
    applicationId "com.example.app"
    minSdkVersion 14
    targetSdkVersion 25
    versionCode 1
    versionName "1.0"
    multiDexEnabled true
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}


}



dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:21.0.3'
compile 'com.google.android.gms:play-services:10.2.0'
compile 'se.emilsjolander:stickylistheaders:2.5.2'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.facebook.android:facebook-android-sdk:4.0.0'
//compile 'com.google.firebase:firebase-messaging:10.2.0'

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

compile
'更改为
compile
并重建项目。

尝试在应用程序级别(build.gradle)中添加以下代码:

另外,请确保已将清单的应用程序标记的name属性设置为MultidexApplication。

请尝试以下代码:

compile ('com.facebook.android:facebook-android-sdk:4.0.0'){
exclude group: 'com.parse.bolts',
        module: 'bolts-tasks'
exclude group: 'com.parse.bolts',
        module: 'bolts-applinks';}

更新您的facebook SDK和appcompat版本
compile ('com.facebook.android:facebook-android-sdk:4.0.0'){
exclude group: 'com.parse.bolts',
        module: 'bolts-tasks'
exclude group: 'com.parse.bolts',
        module: 'bolts-applinks';}