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

1

When I open Android Studio, Gradle runs multiple processes. When it arrives at Resolve dependencies ':app:_debugCompile' it crashes and even having an 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.

    
asked by anonymous 23.08.2015 / 15:51

1 answer

2

I solved by adding the following lines in the file gradle.properties , within 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

In fact, in my file I did not just have HTTPS settings.

    
09.10.2015 / 15:56