Android Studio freezes in Gradle: Resolve dependencies ':app:_debugCompile'

Asked

Viewed 1,643 times

1

When I open Android Studio Gradle runs several processes. When arriving in Resolve dependencies ':app:_debugCompile' he hangs and even telling abort does not respond.

This is my build.gradle:

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.3.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

The proxy is configured and the internet connection works.

  • Hello! What version of your Android Studio? Tried restarting the machine/android studio?

  • Android Studio 1.3.1, already restarted the machine. I use Ubuntu 12.04.

  • Try a Clean Project and then Rebuild Project.

  • When I do Clean Project it curls up in Gradle Build Running

1 answer

2


I decided to add the following lines in the file gradle.properties, inside the project directory:

systemProp.http.proxyHost=proxy.empresa.com
systemProp.http.proxyPort=3128
systemProp.http.nonProxyHosts=10.2.1.0/24, 127.0.0.1

systemProp.https.proxyHost=proxy.empresa.com
systemProp.https.proxyPort=3128
systemProp.https.nonProxyHosts=10.2.1.0/24, 127.0.0.1

Actually, in my file I had not only the settings referring to HTTPS.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.