Android Studio和大量模块

时间:2016-09-16 07:02:46

标签: android android-studio gradle android-gradle build.gradle

我有九个模块的项目:

enter image description here

模块应用是 com.android.application

其他模块是 com.android.library

在模块应用程序中,我有很多产品口味。他们每个人都有不同的连接模块。

我的麻烦是建立时间。是否可以仅构建/重建/清理/同步以所选产品风格连接的模块?

1 个答案:

答案 0 :(得分:1)

最好的方法是使用 maven存储库(如果需要,则为私有)。
这样:

  • 应用程序中的每个风格都将使用从maven repo下载的依赖项
  • 构建应用程序不会强制重建模块
  • 在需要时更新模块并更新依赖项(如果需要,使用快照)
相关问题