Thracian
Thracian

Reputation: 66674

How to create modules in a features(outer) module for Dynamic Features with Android Studio

Dynamic Feature Module folders

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?

Upvotes: 1

Views: 2957

Answers (2)

Amit kumar
Amit kumar

Reputation: 167

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

Upvotes: 3

Công Hải
Công Hải

Reputation: 5241

Not sure about it can be done by Android Studio but the simple way following these steps

  1. You create a Module as normal from Righ Click in app folder
  2. Create Directory with name features, switch to Project structure view and move your Module Directory to features
  3. If you using dynamic-feature-module you have to change in settings.gradle file and build.gradle app.

Upvotes: 2

Related Questions