应用程序:transformClassesWithJarMergingForDebug 失败 [英] app:transformClassesWithJarMergingForDebug FAILED
问题描述
当我尝试运行应用程序时出现此错误
之前
<块引用>错误:任务:app:transformClassesWithJarMergingForDebug"的执行失败.com.android.build.api.transform.TransformException:java.util.zip.ZipException:重复条目:com/google/android/gms/internal/zzsk.class
现在
Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.>com.android.build.api.transform.TransformException:java.util.zip.ZipException:重复条目:com/google/android/gms/internal/zzqz$zza.class
我提到了这个,this 和 这个.尝试了那里提到的解决方案.我离解决这个问题还很远.
请查看应用构建 gradle
依赖项 {编译文件树(目录:'libs',包括:['*.jar'])testCompile 'junit:junit:4.12'编译('com.android.support:appcompat-v7:23.1.1'){排除组:'com.android.support',模块:'support-v4'}编译('com.android.support:recyclerview-v7:23.1.1'){排除组:'com.android.support',模块:'support-v4'}编译('com.android.support:cardview-v7:23.1.1'){排除组:'com.android.support',模块:'support-v4'}编译('com.android.support:design:23.1.1'){排除组:'com.android.support',模块:'support-v4'}编译'com.facebook.android:facebook-android-sdk:4.7.0'编译'com.clevertap.android:clevertap-android-sdk:2.0.11'编译'com.android.support:support-v4:23.1.1'编译('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'编译com.squareup.picasso:picasso:2.4.0"编译('com.google.android.gms:play-services-gcm:8.3.0'){排除组:'com.android.support',模块:'support-v4'排除组:'com.google.guava'}编译('com.google.android.gms:play-services:8.3.0'){排除组:'com.android.support',模块:'support-v4'排除组:'com.google.guava'}编译 'de.hdodenhof:circleimageview:1.3.0'编译项目(':volley')编译('com.crashlytics.sdk.android:crashlytics:2.5.5@aar'){传递 = 真;}编译 'com.android.support:multidex:'应用插件:'com.google.gms.google-services'}
如果需要,我很乐意提供更多信息.
更新
当我评论 compile 'com.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
这篇关于应用程序:transformClassesWithJarMergingForDebug 失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!