Android 错误:任务';的执行失败:app:TransformClasses with Jarmering for Release';

Android 错误:任务';的执行失败:app:TransformClasses with Jarmering for Release';,android,build.gradle,Android,Build.gradle,我不知道为什么会有这个错误,我无法解决它。 请给出准确的答案。我受够了这个错误。我知道这可能会使问题变得复杂,但这些解决方案对我不起作用。我可以调试apk,但无法生成签名apk。 生成签名的apk时,会出现以下异常: 错误:任务执行失败:应用程序:transformClassesWithJarMergingForRelease. com.android.build.api.transform.TransformException:java.util.zip.zipeException:重复条目:

我不知道为什么会有这个错误,我无法解决它。 请给出准确的答案。我受够了这个错误。我知道这可能会使问题变得复杂,但这些解决方案对我不起作用。我可以调试apk,但无法生成签名apk。 生成签名的apk时,会出现以下异常: 错误:任务执行失败:应用程序:transformClassesWithJarMergingForRelease.

com.android.build.api.transform.TransformException:java.util.zip.zipeException:重复条目:io/codetail/widget/RevealLinearLayout.class

这是我的应用程序Gradle:

dependencies {

    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'org.achartengine:achartengine:1.2.0'
    compile('com.crashlytics.sdk.android:crashlytics:2.6.2@aar') {
        transitive = true;
    }
    compile 'org.jsoup:jsoup:1.8.3'
    compile 'com.mcxiaoke.volley:library:1.0.19'
    compile 'com.android.support:appcompat-v7:23.4.0'
    compile 'com.android.support:design:23.4.0'
    compile 'com.pkmmte.view:circularimageview:1.1'
    compile 'com.android.support:cardview-v7:23.4.0'
    compile 'org.achartengine:achartengine:1.2.0'
    compile 'com.github.npanigrahy:Custom-Calendar-View:v1.0'
    compile 'com.github.siyamed:android-shape-imageview:0.9.+@aar'
    compile 'com.github.PhilJay:MPAndroidChart:v2.1.6'
    compile 'com.google.android.gms:play-services:8.3.0'
    compile 'com.android.support:multidex:1.0.1'
    compile 'pub.devrel:easypermissions:0.1.9'
    compile 'com.github.ksoichiro:android-observablescrollview:1.6.0'
    compile 'pl.droidsonroids.gif:android-gif-drawable:1.1.16'
    compile 'com.miguelcatalan:materialsearchview:1.4.0'
    compile 'com.github.rey5137:material:1.2.2'
    compile 'uk.co.chrisjenx:calligraphy:2.1.0'
    compile 'com.github.blackfizz:eazegraph:1.2.5l@aar'
    compile 'com.github.PhilJay:MPAndroidChart:v2.1.6'
    compile 'com.squareup.picasso:picasso:2.5.2'
     compile 'com.nineoldandroids:library:2.4.0'
    compile 'com.miguelcatalan:materialsearchview:1.4.0'
    compile 'de.hdodenhof:circleimageview:2.1.0'
    compile 'com.squareup.picasso:picasso:2.4.0'
    compile('com.crashlytics.sdk.android:crashlytics:2.6.2@aar') {
        transitive = true;
    }
    compile 'com.github.bumptech.glide:glide:3.7.0'
    compile 'com.android.support:palette-v7:23.4.0'
    compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
    compile('com.weiwangcn.betterspinner:library:1.1.0') {
        exclude group: 'com.android.support', module: 'appcompat-v7'
    }
    compile 'swarajsaaj:otpreader:1.0'
    compile('com.github.ozodrukh:CircularReveal:1.3.1@aar') {
        transitive = true;
    }
    compile 'com.flipboard:bottomsheet-core:1.4.3'
    compile 'com.flipboard:bottomsheet-commons:1.4.3'
    compile 'com.riontech.staggeredtextgridview:staggeredtextgridview:1.0.1'
    compile 'konifar:fab-transformation:1.0.0'
    compile project(':flickabledialog')
    compile 'com.android.support:support-v4:23.4.0'
}
你越来越

com.android.build.api.transform.TransformException: java.util.zip.ZipException:重复条目:

你有多个

compile 'com.github.PhilJay:MPAndroidChart:v2.1.6'//remove this
compile 'com.github.PhilJay:MPAndroidChart:v2.1.6'

compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.squareup.picasso:picasso:2.4.0' //remove this

compile 'com.github.PhilJay:MPAndroidChart:v2.1.6' // Two times
注 您的gradle部分中存在许多类似的依赖项。请删除它们。



这不是您问题的答案,但为什么要使用三个不同的库来加载图像?毕加索、格莱德和通用图像加载器在一个项目中?还有两个不同的图表库?MPAndroidChart和AChartEngine?为什么?只是curious@SomeshKumar可能是新手devand还删除了一个编译('com.crashlytics.sdk.android:crashlytics:2.6)。2@aar“{transitive=true;}一个附带问题是Philjay是否包含重复的相关类?@humblerookie Yes非常感谢。。这是可行的,但之后又面临另一个问题,我的listview项目的背景从白色变为黑色,尽管我给它的背景颜色是白色。@IntelliJAmiya我无法在评论中添加该xml,所以我将其添加为ansadd,并将其添加到您的问题部分add
android:background=“@color/white”
在第一个
线性布局
部分。