使用Gradle构建一个胖aar,其中将其他子模块包含在jar/aar中 [英] Build a fat aar which will include other sub modules as jar/aar using Gradle

查看:306
本文介绍了使用Gradle构建一个胖aar,其中将其他子模块包含在jar/aar中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个顶层android库模块(包含res文件夹),它依赖于其他库子模块(没有res).我想构建一个顶级模块的胖子,它应该包括子模块的jar以及我在build.gradle中提到的任何其他aar依赖项.这可能吗?如何?如果需要,我可以提供更多信息.

I have a top level android library module (containing res folder) dependent on other library sub modules(no res). I want to build a fat aar of the top level module which should include the jar of the sub modules as well as any other aar dependency which I mention in the build.gradle. Is this possible? how? I can give more info if needed.

推荐答案

检查fat-aar.gradle脚本,该脚本可完全实现此目的: https://github.com/adwiv/android-fat-aar

Check out the fat-aar.gradle script that does exactly this: https://github.com/adwiv/android-fat-aar

这篇关于使用Gradle构建一个胖aar,其中将其他子模块包含在jar/aar中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆