How to arbitrarily exclude jar(s) from aar when building in gradle

萝らか妹 提交于 2019-12-13 16:06:43

问题


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!!!

来源:https://stackoverflow.com/questions/49443806/how-to-arbitrarily-exclude-jars-from-aar-when-building-in-gradle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!