title: Android Studio gradle takes too long to build
body: <p>My <strong>Android Studio</strong> project used to build faster but now it takes a long time to build. Any ideas what could be causing the delays?
  I have tried <a href="https://stackoverflow.com/a/27171878/391401">https://stackoverflow.com/a/27171878/391401</a> but no effect. I haven't any Anti virus running which could interrupt the builds. My app is not that big in size as well (around <strong>5MB</strong>) and it used to build within few seconds but not sure what has changed.</p>
  <pre><code>10:03:51 Gradle build finished in 4 min 0 sec  
  10:04:03 Session 'app': running  
  10:10:11 Gradle build finished in 3 min 29 sec  
  10:10:12 Session 'app': running  
  10:20:24 Gradle build finished in 3 min 42 sec  
  10:28:18 Gradle build finished in 3 min 40 sec  
  10:28:19 Session 'app': running  
  10:31:14 Gradle build finished in 2 min 56 sec   
  10:31:14 Session 'app': running  
  10:38:37 Gradle build finished in 3 min 30 sec  
  10:42:17 Gradle build finished in 3 min 40 sec  
  10:45:18 Gradle build finished in 3 min 1 sec  
  10:48:49 Gradle build finished in 3 min 30 sec  
  10:53:05 Gradle build finished in 3 min 22 sec  
  10:57:10 Gradle build finished in 3 min 19 sec  
  10:57:11 Session 'app': running  
  </code></pre>