Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is "disable offline mode" and "disable gradle offline" mode and this Setting in Android Studio 4.1

I am on Android 4.1 version and behind the proxy. I have already setup Proxy settings and the sdk download works fine. But when I am creating a new Project it is throwing error :

Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/4.1.0/gradle-4.1.0.pom'. Received status code 407 from server: Proxy Authentication Required

Disable Gradle 'offline mode' and sync project

On searching Gradle Offline in the settings , I find below snapshot :

Gradle Offline settings not there in the Android Studio Settings

I simply clicked the url and then error comes "Disable Offline Mode"

What is the difference between the two and where these can be found in the latest Android Studio. I remember finding it easily using search in settings in older Android Studio versions but not this.

like image 557
Raulp Avatar asked Nov 01 '20 18:11

Raulp


2 Answers

If you want to disable/enable Gradle offline mode:

  • Click on the Gradle tab (from the right side of your Android Studio)
  • Select/Unselect the 4th option in the Gradle toolbar.

enter image description here

like image 65
Umair Iqbal Avatar answered Sep 26 '22 15:09

Umair Iqbal


To enable or disable Gradle's offline mode, first select View > Tool Windows > Gradle from the menu bar. Then, near the top of the Gradle window, click Toggle Offline Mode Gradle offline button in the Gradle panel..

Head over here for more.

like image 39
Ishita Pandey Avatar answered Sep 26 '22 15:09

Ishita Pandey