0

I've seen there is lots of posts with this, and that the solution is to disable offline mode. My problem is that I need to find a solution without disabling it, since it shouldn't connect to the internet.

I can use other computer to pass files, so I've downloaded the latest version of Gradle (6.0.1), in File > Settings > Build, Execution, Deployment > Gradle I've put Gradle home referring to where I've decompressed the zip and in graddle-wrapper.properties set distributionUrl=file:\\\\C:/Gradle/gradle-6.0.1-all.zip

Let me know if I can provide any other information to solve this.

Thanks

Silkking
  • 238
  • 1
  • 13

1 Answers1

0

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

S_i_l_e_n_t C_o_d_e_r
  • 2,179
  • 2
  • 7
  • 21