0

I'm writing an application where integrated two external lib. Project Clean & build is fine but when I tried to run it on device it displaying following error related Duplication of Jar file:

Error:Execution failed for task ':app:transformClassesWithJarMergingForAzovaDebug'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: org/webrtc/voiceengine/BuildInfo.class

Any suggestion how to handle such common scenario ?

CoDe
  • 11,056
  • 14
  • 90
  • 197
  • you could give `exclude` a try. – Blackbelt Jan 17 '17 at 08:57
  • that's useful but I'm not sure about group name & module name what I should pickup. I tried with ./gradlew app:dependencies but didn't found anything relevant. Any suggestion ? – CoDe Jan 17 '17 at 09:23
  • if you press twice on shift on android studio, the "search everywhere" pop up shows up. Type there the name of duplicate class and you will find out who else is using it – Blackbelt Jan 17 '17 at 13:04
  • That's known thing, I'm asking about what to pass as an Group name & Module name. Since I'm getting conflict in a single class and that is also BuildInfo.java :|. – CoDe Jan 17 '17 at 13:14
  • it is `BuildInfo.class` – Blackbelt Jan 17 '17 at 13:53
  • Yes, I mean same. – CoDe Jan 17 '17 at 14:41
  • Let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/133409/discussion-between-shubh-and-blackbelt). – CoDe Jan 18 '17 at 06:55

0 Answers0