Gradle没有看到根模块

时间:2014-02-03 16:12:39

标签: android gradle android-studio android-gradle

项目的结构

MainProgect(He also root of the whole project)

    --SubProgectLib    
        build.gradle

    --SubProgectLib2    
        build.gradle

    --src
    --res

    AndroidManifest.xml
    settings.gradle
    build.gradle

在文件settings.gradle中

include ':SubProgectLib'
include ':SubProgectLib2'

MainProject build.gradle :

如果我同步gralde,那么MainProgect将作为模块消失 Gradle错误不会发出

1 个答案:

答案 0 :(得分:1)

尝试将此添加到您的settings.gradle:

include ':'