Search code examples
androidgradleandroid-gradle-pluginaarandroid-gradle-2.0

Build a fat aar which will include other sub modules as jar/aar using Gradle


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.


Solution

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