3

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?

Saikrishna Rajaraman
  • 3,205
  • 2
  • 16
  • 29
Aditya Naik
  • 27
  • 1
  • 6
  • hope this helps: https://stackoverflow.com/questions/21746087/does-android-studio-need-internet-connection-to-build-project – Zombie Sep 05 '18 at 15:58

1 Answers1

4

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

Sunny
  • 3,134
  • 1
  • 17
  • 31
Anas A.
  • 81
  • 1
  • 6