Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio - How to make modules inside a subdirectory?

Suppose that I had 3 modules: mod1, mod2 and mod3.

In normal case, the file system hierarchy should be:

[android_root_dir] build.gradle # list this file just to make it clear. ----mod1 ----mod2 ----mod3 

But what I want is:

[android_root_dir] build.gradle # list this file just to make it clear. ----modules     ----mod1     ----mod2     ----mod3 

how to do it in Android Studio 1.1.0?

PS: I find this article but it does not seem to work, or it works for earlier versions of AS, not 1.1.0: How can I move a module inside a subdirectory?

like image 967
McArthor Lee Avatar asked Feb 22 '15 13:02

McArthor Lee


1 Answers

You can do it:

root   build.gradle   settings.gradle   modules     mod1       build.gradle     mod2       build.gradle     mod3       build.gradle 

In your settings.gradle

include ':modules:mod1' , ':modules:mod2', ':modules:mod3' 
like image 138
Gabriele Mariotti Avatar answered Sep 18 '22 07:09

Gabriele Mariotti