Android Studio 3库模块和功能模块之间的区别 [英] Android Studio 3 difference between library module and feature module
问题描述
在Android Studio 3中,至少有两种新的模块类型.第一个是Instant app module
,第二个是feature module
.使用Instant App module
很明显,但是从我的角度来看feature module
与library module
相同.那么library
和feature
模块之间的真正区别是什么?什么时候应该使用library module
?什么时候应该使用feature module
?
In Android Studio 3 there are at least two new module types. First is Instant app module
and the second one is feature module
. With Instant App module
it's quite obvious but feature module
from my perspective is the same as the library module
. So what is the real difference between library
and feature
modules and when I should use library module
and when feature module
?
推荐答案
我将像这样完成Marcin Orlowski方案. 您可以按照与给定功能或基本模块的依存关系相同的方式使用图片库模块.
I would complete Marcin Orlowski scheme like this. You could picture library module in the same way as dependencies of a given feature or base module.
因此,库模块不会打包在Instant APP APK中.
Hence the library modules will not be packaged in Instant APP APK.
这篇关于Android Studio 3库模块和功能模块之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!