title: Include projects as modules with relative path
body: <p>I am trying to include external projects as modules in my app, but I want their path to be relative.</p>
  
  <p>What I've tried is the following:</p>
  
  <p><code>settings.gradle</code></p>
  
  <pre><code>include ':MyLibrary1'
  project(':MyLibrary1').projectDir = new File(settingsDir, '..\\Library\\MyLibrary1')
  include ':MyLibrary2'
  project(':MyLibrary2').projectDir = new File(settingsDir, '..\\Library\\MyLibrary2')
  include ':MyLibrary3'
  project(':MyLibrary3').projectDir = new File(settingsDir, '..\\Library\\MyLibrary3')
  include ':MyLibrary4'
  project(':MyLibrary4').projectDir = new File(settingsDir, '..\\Library\\MyLibrary4')
  </code></pre>
  
  <p><code>build.gradle</code></p>
  
  <pre><code>compile project(path:  ':MyLibrary1')
  compile project(path:  ':MyLibrary2')
  compile project(path:  ':MyLibrary3')
  compile project(path:  ':MyLibrary4')
  </code></pre>
  
  <p>But I get this error: <code>Error:Configuration with name 'default' not found.</code></p>
  
  <p><a href="https://i.stack.imgur.com/q7Gme.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/q7Gme.png" alt="Gradle"></a></p>