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

Since I updated my Android Studio to 4.2, I am not able to toggle the Gradle Offline mode.



Solution 1:[1]

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

Solution 2:[2]

from right top you can find toggle offline mode

enter image description here

Solution 3:[3]

Gradle Offline Mode -> enter image description here

Gradle Online Mode -> enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Saeid Mohammadi
Solution 2 Marcin Orlowski
Solution 3 Sujit