Cannot enable Gradle's offline mode on Android Studio 3.6

AndroidAndroid StudioAndroid Gradle-PluginAndroid Studio-3.6

Android Problem Overview


I'm using the new Android Studio 3.6 Canary 9 to test new functionalities, and I cannot enable Gradle's offline mode.

enter image description here

In Android Studio Preferences window, tab Gradle, I cannot find the entry point to enable it. Is this a bug or Google has disabled Gradle's offline mode?

Note that --offline option is still working when using command line.

Android Solutions


Solution 1 - Android

From the Android Studio 3.6 new features blog post:

> New location to toggle Gradle's offline mode 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..

Here is the link -- hope that helps!

Solution 2 - Android

To enable or disable Gradle's offline mode, select View > Tool Windows > Gradle from the menu bar and near the top of the Gradle window, click Toggle Offline Mode Gradle enter image description here

Solution 3 - Android

To clarify it. In your Android Studio...

> View > Tool Windows > Gradle

And then this...

enter image description here

And this...

enter image description here

Solution 4 - Android

Many people have given correct answer, I am just adding pictures relevant to Android Studio 3.6.2. When I upgraded to Android Studio 3.6.2 I kept getting error while doing build that 'Gradle was in offline mode' but under File>Settings>Gradle> I could not see the option to switchoff Gradle offline mode. So I did a fresh install of Android Studio 3.6.2 and I continued to get the same problem. After checking various answers I found that the placement of Gradle offline switch has changed & you can do the switch in Gradle panel as per the 2nd image below.

Image1-Android Studio3.6.2 does not have Gradle Offline Switch in this location Image2- enter image description here

Solution 5 - Android

Please follow below steps : 1.Open Your project. 2.Go to the Left side of the Gradle button.

enter image description here 4.Click button above image show .

  1. if this type of view you are not in offline mode.
  2. Go to Build and rebucild the project.

All above point is work for me.

Solution 6 - Android

enter image description here To enable offline mode you can follow below steps:

1. Click "Gradle" on the right corner
2. Click button "Toggle offline mode" to disable

Solution 7 - Android

For Flutter Projects

You WON'T find this option (View > Tool Windows > Gradle)

enter image description here

Spent hours trying to find it.

You have to open your Android project in another Android Studio window.

Go to Open and select the Android project:

enter image description here

When the new window opens, follow the recommended step and voila:

enter image description here

You can now find the Gradle view window to the right.

When working with Flutter, this is how you make Gradle specific changes.

Solution 8 - Android

Oh in the last release of the android studio the location of the offline mode option has changed!

But it is so easy to just click on Gradle on the right side of the android studio or (go to View > Tools windows and select Gradle! )

and Like a photo Turn on or Turn off the Wifi Icon :

enter image description here

Solution 9 - Android

In Android Studio 3.6, You can toggle Gradle from offline to online mode (See screenshotenter image description here) and hit Gradle sync. This solved my issue.

Solution 10 - Android

After Update Go To File >> Project Structure >> Suggestions and on the Right side pane Click update

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionnhoxbypassView Question on Stackoverflow
Solution 1 - AndroidEric BachhuberView Answer on Stackoverflow
Solution 2 - AndroidIman MarashiView Answer on Stackoverflow
Solution 3 - AndroidNKoyeeView Answer on Stackoverflow
Solution 4 - AndroidAjay BView Answer on Stackoverflow
Solution 5 - AndroidMEGHA DOBARIYAView Answer on Stackoverflow
Solution 6 - Androidfahrizal89View Answer on Stackoverflow
Solution 7 - AndroidOjonugwa Jude OchalifuView Answer on Stackoverflow
Solution 8 - AndroidSana EbadiView Answer on Stackoverflow
Solution 9 - AndroidEkta PathakView Answer on Stackoverflow
Solution 10 - AndroidAbdul AzizView Answer on Stackoverflow