I have a project named MyProject.
It includes 2 library projects abc.aar and xyz.aar.
These both library projects uses and have one common jar dummy.jar (package name: com.example.dummy).
When I include both library projects, it gives me
android java.util.zip.ZipException: duplicate entry com/example/dummy/DummyClass$1.class
I have tried following things -
configurations {
// to avoid double inclusion
all*.exclude group: 'com.example.dummy'
}
and this too
compile (name:'abc', ext:'aar'){
transitive = false
exclude module: 'libs/dummy*.jar'
exclude group: 'com.example.dummy'
exclude module: 'com.example.dummy'
}
Please suggest to avoid double inclusion of dependency jar because of multiple dependency library project using same jar.
My both library projects are not on any repositories.