项目的结构
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'
如果我同步gralde,那么MainProgect将作为模块消失 Gradle错误不会发出
答案 0 :(得分:1)
尝试将此添加到您的settings.gradle:
include ':'