While checking out this tutorial i saw that feature modules are inside an outer module called features
. Is it possible to create such a structure with Android Studio, or is it done by creating a features folder manually and adding those feature modules manually and setting gradle file afterwards?
Asked
Active
Viewed 1,968 times
1

Thracian
- 43,021
- 16
- 133
- 222
2 Answers
2
Not sure about it can be done by Android Studio
but the simple way following these steps
- You create a
Module
as normal fromRigh Click
inapp
folder - Create
Directory
with namefeatures
, switch toProject
structure view and move yourModule Directory
tofeatures
- If you using
dynamic-feature-module
you have to change insettings.gradle
file andbuild.gradle
app.

Công Hải
- 4,961
- 3
- 14
- 20
-
Yes, it's like i thought but using Project structure to move modules makes it one step shorter than i anticipated. – Thracian Jun 30 '20 at 10:29
-
Haha agree with you, if android studio can support we config path when create module so we no need move module directory manually – Công Hải Jun 30 '20 at 10:31
2
you can do this while mentioning module name.
First create a directory
e.g feature in root level
then Create new module
in module name:- feature:module-name

Amit kumar
- 149
- 14