title: Android Studio Gradle Build takes more than 5 minutes
body: <p>So I have been working on a simple app in Android Studio and since last couple of days, whenever I click "Run", it takes more than 5 minutes to build. It didn't used to be this slow. I don't know why. It says "Gradle Build Running" and then app is loaded after 5 minutes. And this happens on both the emulator and on my android device. My grade version is 2.10
  I looked up this issue and I have tried everything that other similar posts have suggested including:</p>
  
  <ul>
  <li>Adding --parallel and --offline to command line option settings</li>
  <li>Enabling 'offline work' in Gradle setting</li>
  <li>Adding <code>org.gradle.daemon=true</code> in gradle.properites file</li>
  </ul>
  
  <p>Below are the screen shots. </p>
  
  <p><a href="https://i.stack.imgur.com/wzb0p.png"><img src="https://i.stack.imgur.com/wzb0p.png" alt="image 1"></a></p>
  
  <p><a href="https://i.stack.imgur.com/o5m7X.png"><img src="https://i.stack.imgur.com/o5m7X.png" alt="image 2"></a></p>
  
  <p><a href="https://i.stack.imgur.com/j6wy3.png"><img src="https://i.stack.imgur.com/j6wy3.png" alt="image 3"></a></p>
  
  <p>Even after doing all these, my grade build takes 5+ minutes.
  This is what was there in the event log: </p>
  
  <pre><code>10:27:57 AM Executing tasks: [:app:clean, :app:generateDebugSources,     :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies,  :app:generateDebugAndroidTestSources, :app:assembleDebug]
  10:34:24 AM Gradle build finished in 6m 26s 378ms
  </code></pre>
  
  <p>Any suggestions will be helpful. Thanks in advance :)</p>