app:transformClassesWithJarMergingForDebug FAILED [英] app:transformClassesWithJarMergingForDebug FAILED

查看:186
本文介绍了app:transformClassesWithJarMergingForDebug FAILED的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试运行应用程序时,出现此错误



之前


 错误:任务':app:transformClassesWithJarMergingForDebug'的执行失败。 com.android.build.api.transform.TransformException:java.util.zip.ZipException:重复条目:com / google / android / gms / internal / zzsk.class 

现在

 错误:执行任务'失败:app:transformClassesWithJarMergingForDebug'。> com.android.build.api.transform.TransformException:java.util.zip.ZipException:重复条目:com / google / android / gms / internal / zzqz $ zza.class 

我提到this 。试过那里提到的解决方案。尽管如此,我还是远离解决问题的。



请查看应用程序构建gradle

  dependencies { 
compile fileTree(dir:'libs',include:['* .jar'])
testCompile'junit:junit:4.12'
compile('com.android.support:appcompat- v7:23.1.1'){
exclude group:'com.android.support',module:'support-v4'
}
compile('com.android.support:recyclerview- v7:23.1.1'){
exclude group:'com.android.support',module:'support-v4'
}
compile('com.android.support:cardview- v7:23.1.1'){
exclude group:'com.android.support',module:'support-v4'
}
compile('com.android.support:design: 23.1.1'){
exclude group:'com.android.support',module:'support-v4'
}
compile'c​​om.facebook.android:facebook-android-sdk :4.7.0'
compile'c​​om.clevertap.android:clevertap-android-sdk:2.0.11'
com 'com.android.support:support-v4:23.1.1'
compile('com.google.android.gms:play-services-analytics:8.3.0')
{
排除组:'com.android.support',模块:'support-v4'
排除组:'com.google.guava'
}
编译'org.jbundle.util。 osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2'
compilecom.squareup.picasso:picasso:2.4.0
compile( 'com.google.android.gms:play-services-gcm:8.3.0'){
排除组:'com.android.support',模块:'support-v4'
排除组: 'com.google.guava'
}
compile('com.google.android.gms:play-services:8.3.0'){
exclude group:'com.android.support ',module:'support-v4'
exclude group:'com.google.guava'
}
编译'de.hdodenhof:circleimageview:1.3.0'
编译项目(':volley')
编译('com.crashly tics.sdk.android:crashlytics:2.5.5@aar'){
transitive = true;
}
compile'c​​om.android.support:multidex:'

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

如果需要,我很乐意提供更多信息。

UPDATE



当我评论 compile'c​​om.clevertap.android:clevertap-android-sdk:2.0.11 '它正常运行。

解决方案

通过更新 com.google.android.gms:play-services 版本
从8.3.0到8.4.0


when I try to run the app I am getting this error

before

Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/internal/zzsk.class

Now

Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/internal/zzqz$zza.class

I referred this,this and this. Tried the solutions mentioned there. Still I am far away from solving the Issue.

Please have a look on the app build gradle

    dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile('com.android.support:appcompat-v7:23.1.1') {
        exclude group: 'com.android.support', module: 'support-v4'
    }
    compile('com.android.support:recyclerview-v7:23.1.1') {
        exclude group: 'com.android.support', module: 'support-v4'
    }
    compile('com.android.support:cardview-v7:23.1.1') {
        exclude group: 'com.android.support', module: 'support-v4'
    }
    compile('com.android.support:design:23.1.1') {
        exclude group: 'com.android.support', module: 'support-v4'
    }
    compile 'com.facebook.android:facebook-android-sdk:4.7.0'
    compile 'com.clevertap.android:clevertap-android-sdk:2.0.11'
    compile 'com.android.support:support-v4:23.1.1'
    compile('com.google.android.gms:play-services-analytics:8.3.0')
    {
        exclude group: 'com.android.support', module: 'support-v4'
        exclude group: 'com.google.guava'
    }
    compile 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2'
    compile "com.squareup.picasso:picasso:2.4.0"
    compile('com.google.android.gms:play-services-gcm:8.3.0') {
        exclude group: 'com.android.support', module: 'support-v4'
        exclude group: 'com.google.guava'
    }
    compile('com.google.android.gms:play-services:8.3.0') {
        exclude group: 'com.android.support', module: 'support-v4'
        exclude group: 'com.google.guava'
    }
    compile 'de.hdodenhof:circleimageview:1.3.0'
    compile project(':volley')
    compile('com.crashlytics.sdk.android:crashlytics:2.5.5@aar') {
        transitive = true;
    }
    compile 'com.android.support:multidex:'

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

I am happy to provide more information if needed.

UPDATE

When I comment compile 'com.clevertap.android:clevertap-android-sdk:2.0.11' It is working fine.

解决方案

Solved the issue by updating the com.google.android.gms:play-services version from 8.3.0 to 8.4.0

这篇关于app:transformClassesWithJarMergingForDebug FAILED的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆