Can an AAR include transitive dependencies?

纵饮孤独 提交于 2019-11-27 00:36:21
VicVu

So, it took a little while but I found what I was looking for. It just happened to be the way I was wording my searches.

This lesser-seen answer was exactly what I was looking for:

Transitive dependencies not resolved for aar library using gradle

Essentially, I needed to add a

transitive = true

to the build.gradle of Bar

ex:

compile ('com.foo:FOO:1.0.0@aar'){
       transitive=true
}

This way it includes all of my transitive libraries.

Note, however, that this may actually cause conflicts between dependencies (especially local ones) which can be resolved using an 'exclude' tag.

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