Gradle stuck at building project in Android Studio
<p>I am using Android Studio, and every time Gradle attempts to build my project, it gets stuck. What I mean by that is it gives me the build dialog for hours at a time, and I am unable to build my project. Here is a screenshot:<a href="http://i.stack.imgur.com/lgalQ.jpg" rel="noreferrer">Android Studio Gradle Build</a></p>

<p>I have scoured what seems like the entire whole of the internet, but no solution I have found seems to work. I am new to Android development, so there is probably something here that's staring me straight in the face. The main thing that sticks out to me is this portion of the logs in my .gradle directory:</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>DaemonExpirationPeriodicCheck running
16:20:23.790 [DEBUG] [org.gradle.launcher.daemon.server.health.DaemonStatus] GC rate: 0.0/s
16:20:23.793 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
16:20:23.795 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired.
16:20:23.803 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
16:21:23.790 [DEBUG] [org.gradle.launcher.daemon.server.Daemon] DaemonExpirationPeriodicCheck running
16:21:23.791 [DEBUG] [org.gradle.launcher.daemon.server.health.DaemonStatus] GC rate: 0.0/s
16:21:23.794 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
16:21:23.795 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired.
16:21:23.800 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
16:22:23.792 [DEBUG] [org.gradle.launcher.daemon.server.Daemon] DaemonExpirationPeriodicCheck running
16:22:23.793 [DEBUG] [org.gradle.launcher.daemon.server.health.DaemonStatus] GC rate: 0.0/s
16:22:23.798 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
16:22:23.799 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired.
16:22:23.806 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
16:23:23.794 [DEBUG] [org.gradle.launcher.daemon.server.Daemon] DaemonExpirationPeriodicCheck running
16:23:23.795 [DEBUG] [org.gradle.launcher.daemon.server.health.DaemonStatus] GC rate: 0.0/s
16:23:23.800 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
16:23:23.800 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired.
16:23:23.807 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.</code></pre>
</div>
</div>
</p>

<p>As you can see, this sequence repeats itself over and over again. I am 100% positive I have the correct gradle installation, I just can't seem to figure out why my project refuses to build. </p>

<p>Any help is appreciated!</p>

<p>EDIT:
I just wanted to let everyone know that I figured it out! Apparently my parents put some insanely powerful parental control software on my computer a few years ago and I forgot it was there. After uninstalling, Android Studio now works flawlessly. The software basically blocked all unknown traffic coming in and out of most of the ports. Anyway, thank you to everyone for the help. I can finally start developing!</p>