我尝试运行我的android项目时遇到此错误:

时间:2017-05-05 10:05:23

标签: android-studio android-fragments

错误:任务':app:transformClassesWithJarMergingForDebug'执行失败。

  

com.android.build.api.transform.TransformException:java.util.zip.ZipException:重复条目:com / google / android / gms / gcm / PendingCallback $ 1.class

这是我的构建(模块:应用程序).​​gradle& build.gradle(Project:AppName)文件   In this image i don't understand where changes are need to be done build.gradle file having multiple dependencies.

1 个答案:

答案 0 :(得分:0)

According to this issue. firebase-jobdispatcher-android comes bundled with gcm and since you have already have it in your dependencies, you get the duplicate entry error.

Sampyng suggests you do the following:

compile ("com.firebase:firebase-jobdispatcher-with-gcm-dep:0.6.0") {
    exclude module: "play-services-gcm"

}

相关问题