How to Disable Gradle 'Offline Mode' in Android Studio

How to disable gradle 'offline mode' in android studio 4.2?

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..

I have disable the Gradles offline mode , and now there is a new error as below :

Make sure you do not have gradle offline mode enabled. Your gradle toolbar should look like the one below. The 4 icon from the left, is the toggle offline/online button. It should not be selected.

gradle toggle offline/online

You can run the actions like the following to do a gradle sync with your project.

gradle sync action

That should get you back online and your project synced up.

enable/disable offline mode in andriod studio 4.0

To enable/disable offline mode. Go to gradle -> toggle like in this pictureSample Image

After clicking build gradle. You can toggle it using this toggle button.Sample Image



Related Topics



Leave a reply



Submit