Android Studio With Offline Gradle

By default, when you use android studio with Gradle, it will downloadd dependencies every times you build the code. To turn this off, we have to enable offline mode. To do this, go to preference, select gradle, then check ‘offline work’ in the global gradle setting section.