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.
source
share