deeshank
deeshank

Reputation: 4486

Android build.gradle - Libraries clashing

I am Developing an android application and using a library say A. and I have another library say B which internally uses A. Because of this, I get Duplicate zip entry error on my build. How do i exclude libraries from 3rd party libraries or how do i get around this issue?

Upvotes: 2

Views: 46

Answers (1)

Ricardo
Ricardo

Reputation: 7965

You can exclude the modules you don't need from a dependency with exclude module:

compile (project(':B')) {
    exclude module: 'A'
}

Upvotes: 1

Related Questions