title: how to do gradle dependency project to each other
body: <p>Good day,</p>
  
  <p>Previously I was using eclipse IDE to do the project dependency. So my project A can import class from project B, and also project B can import project A.</p>
  
  <p>Now I am changing to <code>gradle</code>.  The following is my gradle code:</p>
  
  <pre><code>project('host-A') {
  
    dependencies {
      compile project(':host-B')
    }
    host.ext.A = project
  }
  </code></pre>
  
  <p>With this, my project A able to import class from project B.</p>
  
  <p>However, I wish to make the project B able to import class from project A as well, but I am hitting error if I code the <code>gradle</code> as follow:</p>
  
  <pre><code>project('host-B') {
  
    dependencies {
  
     compile project(':host-A')
  
    }
    host.ext.B = project
  }
  </code></pre>
  
  <p>I believe there should be a way to do this. May I know what is my mistake? I am new to <code>gradle</code>.</p>