Does gradle load a new copy of the dependencies for each new project?

I have been searching the Internet endlessly and have been considering some issues here for the past week, since I decided to move to Android Studio

I really don’t understand why you have to be online at least once in order to build a project in Android Studio. What was so special about Eclipse that it was able to do all the compilation offline and, presumably, it’s better to build a system (gradle), it can’t .

Until now, I still do not understand all this fuss that I see about gradle, what is it that gradle selects online when I have all the necessary files needed to create my project on my computer ?.

This really disappoints me, because I can’t guarantee that I will always have Internet access.

+4
source share
2 answers

First of all, Gradle has a local cache for storing loaded dependencies. If your new project requires some dependency that was already used by some other project and stored in the cache, then there is no need to download them again.

-, , , Maven Central. , . Gradle. , Gradle , , , . , , , , ( " " ). Gradle , .

, , .

+4

.

     

, ,

     

Gradle !

     

. Android Studio

+4

Source: https://habr.com/ru/post/1617212/


All Articles