-1

I just started facing issue while building android project:

Execution failed for task ':app:transformClassesWithJarMergingForDebug'.

com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/crashlytics/android/answers/shim/R.class

Tried other related answers like cleaning project from terminal, rebuilding but nothing worked.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
amit srivastava
  • 743
  • 6
  • 25
  • 5
    Please include all relevant information in the question itself. As for now, the pastebin link is dead and the question is completely useless. To all the upvoters: How can you upvote a question that so obvious validates the SO policy? – BDL Apr 18 '17 at 14:30
  • FYI This question is currently [discussed on Meta.SO](https://meta.stackoverflow.com/q/348078/812149). Which probably explains the sudden downvotes. – S.L. Barth is on codidact.com Apr 18 '17 at 15:02
  • @BDL, The question I asked does not seem to be off topic, it is clearly asked and answered as well. Doubt what makes you think that after a long time. – amit srivastava Apr 18 '17 at 20:03
  • 3
    Your question is off-topic of exactly the reason explained in the message: You must include all relevant information **in the question itself**. Now that the linked document is gone, the question is basically unsolvable. There is also no way to know for another visitor whether he has the same problem or not. – BDL Apr 18 '17 at 20:09

1 Answers1

11

Try replacing

compile 'io.branch.sdk.android:library:2.+'

With

compile ('io.branch.sdk.android:library:2.+') {
exclude module: 'answers-shim' 
}
mario
  • 286
  • 1
  • 4
  • 5