androidandroid-studiodynamic-feature-module

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?


Solution

  • 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.