title: Android Studio - Gradle build running never ends
body: <p>I just installed Debian 8 in my PC. I tried to set-up Android-Studio(1.4):</p>
  
  <ul>
  <li>Downloaded from <a href="https://developer.android.com/sdk/index.html" rel="nofollow">https://developer.android.com/sdk/index.html</a></li>
  <li>Unzip in /opt</li>
  <li>Downloaded the SDK and everything</li>
  </ul>
  
  <p>When I try to create a new project, and also if I open an old project, it gets stuck building (I let it running for more than 1 hour and it never ends).
  In console it always prints:</p>
  
  <blockquote>
    <p>$ android-studio/bin/studio.sh  Tooling API is using target Gradle
    version: 2.4. Starting a new Gradle Daemon for this build (subsequent
    builds will be faster). Starting process 'command
    '/usr/lib/jvm/java-1.7.0-openjdk-amd64/bin/java''. Working directory:
    /home/tobias/AndroidStudioProjects/MyApplication Command:
    /usr/lib/jvm/java-1.7.0-openjdk-amd64/bin/java -version Successfully
    started process 'command
    '/usr/lib/jvm/java-1.7.0-openjdk-amd64/bin/java'' Starting daemon
    process: workingDir = /home/tobias/.gradle/daemon/2.4, daemonArgs:
    [/usr/lib/jvm/java-1.7.0-openjdk-amd64/bin/java, -XX:MaxPermSize=256m,
    -XX:+HeapDumpOnOutOfMemoryError, -Xmx1024m, -Dfile.encoding=UTF-8, -Duser.country=US, -Duser.language=en, -Duser.variant, -cp, /opt/android-studio/gradle/gradle-2.4/lib/gradle-launcher-2.4.jar,
    org.gradle.launcher.daemon.bootstrap.GradleDaemon, 2.4,
    /home/tobias/.gradle, /home/tobias/.gradle/daemon, 10800000,
    4f46addb-22d0-418f-8179-49ef885a95cc, -XX:MaxPermSize=256m,
    -XX:+HeapDumpOnOutOfMemoryError, -Xmx1024m, -Dfile.encoding=UTF-8, -Duser.country=US, -Duser.language=en, -Duser.variant] Starting process 'Gradle build daemon'. Working directory:
    /home/tobias/.gradle/daemon/2.4 Command:
    /usr/lib/jvm/java-1.7.0-openjdk-amd64/bin/java -XX:MaxPermSize=256m
    -XX:+HeapDumpOnOutOfMemoryError -Xmx1024m -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -cp /opt/android-studio/gradle/gradle-2.4/lib/gradle-launcher-2.4.jar
    org.gradle.launcher.daemon.bootstrap.GradleDaemon 2.4
    /home/tobias/.gradle /home/tobias/.gradle/daemon 10800000
    4f46addb-22d0-418f-8179-49ef885a95cc -XX:MaxPermSize=256m
    -XX:+HeapDumpOnOutOfMemoryError -Xmx1024m -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant Successfully started process 'Gradle build daemon' An attempt to start the daemon
    took 1.354 secs. Connected to daemon DaemonInfo{pid=4668,
    address=[d3bdeeea-46b5-40d0-8eaf-ab113cda06ce port:33671,
    addresses:[/0:0:0:0:0:0:0:1%1, /127.0.0.1]], idle=false,
    context=DefaultDaemonContext[uid=4f46addb-22d0-418f-8179-49ef885a95cc,javaHome=/usr/lib/jvm/java-7-openjdk-amd64,daemonRegistryDir=/home/tobias/.gradle/daemon,pid=4668,idleTimeout=10800000,daemonOpts=-XX:MaxPermSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant]}.
    Dispatching request Build{id=d764db2d-9d61-4582-8c7c-ba0d7d68ca22.1,
    currentDir=/home/tobias/AndroidStudioProjects/MyApplication}.</p>
  </blockquote>
  
  <p>I have tried re-installing and restarting, and nothing.</p>