N
N
NameOf Var2017-10-10 17:46:02
Android
NameOf Var, 2017-10-10 17:46:02

How to properly configure Gradle dependencies with Offline Work enabled?

I will say right away that I work in a university network, so some sites are cut for me. Initially, the problem was this: when opening the start project, the error Error:Connection timed out: connect took off. Ok, googled how to fix it. The solution was to download the gradle-3.3-all package and set the Offline Work option in the Gradle settings. But now, when trying to build the project, Gradle gives errors:
59dcdc40c68c7595873970.png
Disabling the Offline Work option does not solve the problem

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis Zagaevsky, 2017-10-10
@zagayevskiy

Gradle can't pull dependencies. You did not cure the problem with an offline mod, but hid the symptoms.
The solution... well, maybe you can pull up a local maven repository and put all the dependencies there, put it in build.gradle:

buildscript {
    repositories {
        maven {
             url...
        }
    }
}

A
aol-nnov, 2017-10-10
@aol-nnov

in the university network, I suppose, a proxy? and you need to configure it in the gradle to let it in?
and so, if you follow the path proposed by Denis Zagaevsky , then artifactory can be a caching repository, for example.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question