我在尝试运行我的Android项目时出现此错误:
问题描述:
错误:执行任务':app:transformClassesWithJarMergingForDebug'失败。我在尝试运行我的Android项目时出现此错误:
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/gcm/PendingCallback$1.class
这里是我的版本(模块:APP).gradle &的build.gradle(项目:AppName的)文件 In this image i don't understand where changes are need to be donebuild.gradle file having multiple dependencies.
答
据this issue。 firebase-jobdispatcher-android与gcm捆绑在一起,因为你已经在你的依赖关系中拥有了它,所以你会得到重复的输入错误。
Sampyng建议您做到以下几点:
compile ("com.firebase:firebase-jobdispatcher-with-gcm-dep:0.6.0") {
exclude module: "play-services-gcm"
}
+0
感谢它的工作 –
看看这有助于:http://stackoverflow.com/a/35082883/6248491 –