0

help me understand how to resolve this Gradle sync failed: No cached version of com.android.tools.build:gradle:3.6.3 available for offline mode. Consult IDE log for more details (Help | Show Log) (4 s 639 ms)

bethuel
  • 1
  • 2

5 Answers5

1

Turn off the offline mode and rebuild the project

Lathesh
  • 340
  • 1
  • 7
1

Go to View -> Tool Windows -> Select Gradle from the menu bar. Once the Gradle menu opens, click Toggle Offline Mode. Then proceed to rebuild.

Happy coding!

HaroldSer
  • 2,025
  • 2
  • 12
  • 23
0

First you shout sync successfully , in case you can`t sync successfully?

Follow this steps,

  1. Download latest version of gradle .

  2. gradle download link

  3. After downloading it extract new folder.

  4. Then open android studio. Go to file->settings->Build,Execution,Deployment->Gradle.

  5. Then choose Use local Gradle distribution and in the Gradle home give the path of the folder where we have extracted file.

  6. Finally restart your android studio.

Otherwise, it will occur from offline work in Global Gradle Settings, if it's checked please UnCheck it. Have a nice day.

please read this other answers too click here

Ganesh MB
  • 1,109
  • 2
  • 14
  • 27
0

Need to disable the offline mode.

For disabling the offline mode You can click Toggle Offline Mode button from Gradle menu, After disabling the offline mode need to rebuild the project again.

enter image description here

Android Geek
  • 8,956
  • 2
  • 21
  • 35
0

Change this:

enter image description here

To:

enter image description here

Then Rebuild project. It will resolve your problem!

Muhammad Zahab
  • 1,049
  • 10
  • 21