title: Android Studio stuck indefinitely during gradle sync, but the same project works fine in Intellij Idea
body: <p>I am working on a mid sized project which has 30 modules. These modules depend on external libraries some of which are hosted on a private maven repository while the others are from mavenCentral(). I am using Android Studio 1.4 and IntelliJ Idea Community Edition 14.1.5. I am facing a strange problem that if I open my project in AS 1.4, it is indefinitely stuck on gradle sync. Like the project won't sync at all. I have waited for hours and hours, given 4 GB heap space to AS, basically done everything in my power but AS refuses to sync the project. On the other hand, the project works completely fine with IntelliJ Idea. It syncs within 30 seconds on it. 
  What am I missing? Has anyone else faced this? Please help me out. </p>