How to disable gradle ‘offline mode’ in android studio? [duplicate]

New location in Android Studio 3.6+

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.


Old answer

On Windows:-

Go to File -> Settings.

And open the 'Build,Execution,Deployment'. Then open the

Build Tools -> Gradle

Then uncheck -> Offline work on the right.

Click the OK button.

Then Rebuild the Project.

On Mac OS:-

go to Android Studio -> Preferences, and the rest is the same.
OR follow steps given in the image

[For Mac go 1

enter image description here

Leave a Comment