Why does “battery life” make Gradle Build Running faster in Android Studio?

From the answer of https://stackoverflow.com/a/3/31031/ ... we know that “battery life” really helps a lot when you encounter the problem that Android Studio starts the application too slowly. As an extension, why does “battery life” make Gradle Build Running faster in Android Studio? Is it because Android Studio will download files from the Internet every time I rebuild the application when Android Studio is in Internet browsing mode? If so, why set "online work" as the default action? This does not seem reasonable at all.

+4
source share
1 answer

If you are offline, you do not download libraries from the Internet and get your assembly faster. But if you add a new dependency and work offline, you will not get this library.

In other words: after each new dependency, go online and create a gradle to load the new library. After that, you can go offline and build your project faster.

The same if you want to upgrade the library to a new version.

+2
source

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


All Articles