I have a library say abc.aar, this includes timber.jar in its lib. This timber is Version - 2.5.1 Library abc is developed by a different team, and I cannot modify that. :-( I am developing another library which has a dependency on abc.aar. I need to use timber-4.7.0. How do I exclude timber2.5.1 from compiling. I tried the following
compile(name: 'abc-aaa', ext: 'aar'){
exclude module: 'com.jakewharton.timber'
}
compile 'com.jakewharton.timber:timber:4.7.0'
This did not work for me. I get the Timber reference from abc module. (timber-2.5.1). Any help much appreciated.