Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot enable Gradle's offline mode on Android Studio 3.6

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.

like image 477
nhoxbypass Avatar asked Sep 05 '19 02:09

nhoxbypass


People also ask

How do I run Android Studio in offline mode?

Open the Preferences window by clicking File > Settings (on Mac, Android Studio > Preferences). In the left pane, click Build, Execution, Deployment > Gradle. Check the Offline work checkbox. Click Apply or OK.

How do I turn off offline mode in Gradle?

(Build Tools -> Gradle)Then (uncheck -> Offline work) on the right. Click the OK button.


3 Answers

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!

like image 137
Eric Bachhuber Avatar answered Oct 17 '22 03:10

Eric Bachhuber


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

like image 24
Iman Marashi Avatar answered Oct 17 '22 04:10

Iman Marashi


To clarify it. In your Android Studio...

View > Tool Windows > Gradle

And then this...

enter image description here

And this...

enter image description here

like image 33
NKoyee Avatar answered Oct 17 '22 03:10

NKoyee