Build Gradle require internet connection

Viewed 3273

My Android studio application always asks to keep internet connected during build Gradle otherwise it does not run Gradle

How can i disable it and use stable version android-studio without internet?

1 Answers

Gradle needs an internet connection to download the dependencies that you specify. Once it downloads everything, it can put them in memory so that you can work offline.
To do this, you need to go to Files->Settings (For Mac: Android Studio-> Settings...).
Then, you go to Gradle and you check "Offline work"
Image

You can now build your project without internet.
CAUTION: if you change or add dependencies, you will need internet again. Hope that helps

Related