I have following directory structure:
D:\\PROJECT
+---javaGradleProject1
+---javaGradleProject2
+---javaGradleProject3
\\---AndroidProject
|
Add a colon (:) before the names of your modules when you add it in settings.gradle
, e.g. for the first one, change this:
include 'javaGradleProject1'
project(':javaGradleProject1').projectDir = new File(rootDir, '../javaGradleProject1')
to this:
include ':javaGradleProject1'
project(':javaGradleProject1').projectDir = new File(rootDir, '../javaGradleProject1')
Now in addition to compiling, IntelliJ / Android Studio should give you code completion.