Gradle don't sees root module

2019-08-29 07:10发布

问题:

There is the structure the project

MainProgect(He also root of the whole project)

    --SubProgectLib    
        build.gradle

    --SubProgectLib2    
        build.gradle

    --src
    --res

    AndroidManifest.xml
    settings.gradle
    build.gradle

In file settings.gradle

include ':SubProgectLib'
include ':SubProgectLib2'

MainProject build.gradle :

If I synchronize gralde, then MainProgect disappears as module.
Gradle error does not issue

回答1:

Try adding this to your settings.gradle:

include ':'