7

How to enable/disable offline mode in android 4.0? It seems previous versions a bit different compared to current version.

Can you help me with that?

Khamidjon Khamidov
  • 1,386
  • 1
  • 7
  • 23

2 Answers2

28

To enable/disable offline mode. Go to gradle -> toggle like in this pictureenter image description here

After clicking build gradle. You can toggle it using this toggle button.enter image description here

Khamidjon Khamidov
  • 1,386
  • 1
  • 7
  • 23
  • Amazing how such a minor but almost hidden setting can cause untold frustration. Surely there must exist a common description for it that can be rendered into a keyword that may be set conventionally like a true/false parameter? Something approaching gradle_tools_sync or the like? – MKhomo Dec 08 '20 at 00:02
3

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 (you can find something like =//=).

https://developer.android.com/studio/releases#3.6-gradle-offline-ui