I am developing an Android Library. The Library is having few dependency. I am not sure what will happen if the developer use my library with other dependencies already present in my Library. I tried to googling about this but couldn't find anything.
For example I am using Volley Library of version X in my Library and shipping it as gradle package. And the developer imports Volley with Version Y along with my Library.
What should be the best way to include a Dependency in a Library (module, jar or package) so as to minimise conflict situation.
Two options
The second option is to specificaly exclude transistive dependencies doing:
compile('X') {
exclude module: 'Y'
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With