Android Studio Preference to enable or disable Offline mode is not found in the latest Android Studio version 3.6.1.
From the build view suggestion, I was able to enable offline mode, but not able to disable now.
If we need to use the offline mode, just go to the Gradle window and click the Toggle Offline Mode button: After we click the button to enable offline mode, we can reload all dependencies and find that offline mode works.
When you open android studio, look at the right side and there will be multiple tabs. Click on gradle and then on wifi icon to toggle between online and offline mode.
(Build Tools -> Gradle)Then (uncheck -> Offline work) on the right. Click the OK button. Then Rebuild the Project.
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..
the setting for offline mode have changed again if you are on android studio 4.1 or above it has moved to the right side drawer of "gradle"
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