No cached version of gradle

In my case I also had an additional "offline switch" to the one in Gradle.

Go to:

File > Settings > Build, Execution, Deployment > Compiler

There I've removed the --offline in Command-line Options. Earlier I was trying to speed up Android Studio a bit and this was one of the changes I had made.

Everything was fine after a restart then (and I have re-enabled both offline parts).


I have Android Studio 3.6 Beta 1, so there is no checkBox offline mode in Gradle settings.

If somebody can't find it as well, here is the answer:

  1. Ctrl + Shift + "A"
  2. Type Gradle, then click Enter

You can toggle offline mode now


If you have Android Studio 3.6(Stable). You can switch between cached version and online version of gradle.

Look at the right side of the Android studio, you will see gradle tab. Click on it.

enter image description here

enter image description here

If you cannot see gradle tab then

enter image description here