简体   繁体   English

在一个Android Studio项目中使用多个模块

[英]Use multiple modules in one Android Studio project

I am working on a project and have planned the following architecture within one single Android Studio project: 我正在研究一个项目,并且已经在一个Android Studio项目中规划了以下架构:

1) Eight custom library modules which I intend to reuse in future projects. 1)我打算在以后的项目中重用的八个自定义库模块。

2) Three closely related apk modules which complement each other's functionality. 2)三个紧密相关的apk模块,它们相互补充。

3) Five shared modules which would be used in above apk modules. 3)五个共享模块将在上述apk模块中使用。

Is this the recommended approach to keep the project architecture modular, and reuse of modules in multiple projects, while ensuring performance of Android Studio. 这是建议的方法,以保持项目架构模块化,并在多个项目中复用模块,同时确保Android Studio的性能。

You need to have more RAM for bigger projects , atleast 8 GB . 您需要更大的RAM用于更大的项目,至少8 GB。

Lets say you have 2 apk modules and 1 library module that is being used by the 2 apk modules. 假设您有2个APK模块和1个库模块,这2个APK模块正在使用。 If you find the compile times taking longer you can disable the apk module you are not working on temporarily and compile it faster . 如果发现编译时间较长,则可以禁用您不在工作的apk模块,并加快编译速度。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM