I'm using the new Android Studio 3.6 Canary 9 to test new functionalities, and I cannot enable Gradle's offline mode.
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.
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.
(Build Tools -> Gradle)Then (uncheck -> Offline work) on the right. Click the OK button.
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!
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
To clarify it. In your Android Studio...
View > Tool Windows > Gradle
And then this...
And this...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With