如何在我的发行版中打包多个AAR [英] How to package multiple AAR's in my release aar
问题描述
https://github.com/adwiv/android-
现在不行,所以寻找并行/更好的方法解决问题。
在Android Studio项目中使用模块依赖关系:
右键单击您的项目 - >打开模块设置或导航至视图 - >打开模块设置 - >点击'app'/ module-name - >选择'Dependencies'选项卡。在左下角,你应该找到一个'+'按钮来添加库依赖/ Jar依赖/模块依赖。
一旦您点击确定并将您的项目重新编译到aar文件中,您就会发现所有的依赖包括在内。
它也会自动更新gradle文件。
We ship an android sdk (aar) file to the customer. Our code internally uses two 3rd party aar's which we have in our repo and gradle references it at run time. My question is that how do I ship these dependencies to the customer? As in if I dont want to give them those 3rd party aar's, how can I embed those two aar's within my aar. Till now we were using: https://github.com/adwiv/android-fat-aar.
This doesn't work now, so looking for parallel/better ways of solving the problem.
I use module dependencies in the Android Studio project: right click on your project -> Open Module Settings or navigate to View -> Open Module Settings -> click on 'app' / module-name -> select 'Dependencies' tab. On the left bottom, you should find a '+' button to add library dependency/Jar dependency/module dependency. Once you click 'OK' and rebuild your project into an aar file, you will find all the dependencies included.
It automatically updates the gradle file too.
这篇关于如何在我的发行版中打包多个AAR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!