How to arbitrarily exclude jar(s) from aar when bu

2019-08-04 17:02发布

问题:

My AAR library includes multiple dependent libraries. However, there are some projects using the library do not need some dependent libs. I want to exclude them from the built APK

This is my AAR file structure like this. I want to have a snippet of code excluding things like dagger-2.7.jar or eventbus-2.2.1.jar

By the way, I referred a post here but it doesn't work in my case: Exclude jar-library from aar

Thank you very much for your support!!!