How can I move a module inside a subdirectory?

前端 未结 3 868
走了就别回头了
走了就别回头了 2021-01-05 09:44

I need to write a lot of trivial modules and I don\'t want to hide the main modules between them. For this reason I want to have a directory tree like this:

3条回答
  •  甜味超标
    2021-01-05 10:10

    You can now define the location of modules with

    include ':myModule'    
    
    project(':myModule').projectDir = new File('dir/myModule')
    

    Further, you have to remove the .iml files under the module directory to let Android Studio recreate them.

提交回复
热议问题