K
K
Konstantin2020-01-21 19:19:41
Android
Konstantin, 2020-01-21 19:19:41

Can't include dependencies in gradle project using Socks. How to solve this problem?

Good day to all. The essence of the problem is this, I am writing a small application on android, and I needed to connect to the firebase application. I, using android studio, and some mother, synchronized with firebase, created a new project here with the same name and created it in studio. Next, I want to build user authentication into the application. Firebase writes its own dependencies to my build.gradle. Here is what it says:

// 
buildscript {
    repositories {
        google()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.5.3'
        classpath 'com.google.gms:google-services:4.3.3'     
    }
}

allprojects {
    repositories {
        google()        
    }
}
task clean(type: Delete) {
    delete rootProject.buildDir
}

And, after that, when I try to build the project, gradle tries to download these dependencies, and this happens for hours... 5e2723f795b8e484314964.png
. I also use a proxy connection. I wrote this in both android studio settings and gradle.properties.
Moreover, in the last project, I could not connect dependencies from the maven () repositories, that's exactly how time passed, but the download did not occur. The firewall in windows 7 is completely disabled. Help, how can I still make these dependencies work?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question