Android Studio - How to make modules inside a subdirectory?

前端 未结 3 1172
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-02 09:23

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          


        
3条回答
  •  情书的邮戳
    2021-02-02 10:18

    My project struct

    Coding
       app
       push-dir
         coding-push
         push-xiaomi
       setting.gradle
    

    setting.gradle file

    // need repeat declarative, i think it's bug
    include ':app'
    include ':coding-push'
    include ':push-dir:coding-push'
    include ":push-xiaomi"
    include ":push-dir:push-xiaomi"
    

    I used repeat declarative in settings.gradle to solve. (Android Studio 3.0), I think it's AS's bug. Sometimes need restart AS.

提交回复
热议问题