1

While starting android, GRADLE SYNC failed and this error pop up

Gradle sync failed: No cached version of com.android.tools.build:gradle:3.1.2 available for offline mode. Consult IDE log for more details (Help | Show Log) (4m 29s 435ms)

Please help to solve this error.

Michał Turczyn
  • 32,028
  • 14
  • 47
  • 69
Mayank Mittal
  • 59
  • 3
  • 4
  • 1
    Your gradle sync might be turned off, go to File-> Settings -> Build, Execution, Deplyment -> Gradle.. Under global gradle setting, uncheck the "offline work" checkbox and Apply -> OK . Then try to sync again the project – Ichigo Kurosaki May 07 '18 at 04:01

2 Answers2

2

Uncheck Offline mode setting in Build and Execution Setting, and then sync the project.

Shubham Raitka
  • 1,034
  • 8
  • 15
1

In new Android Studio 3.6.3 Version which I am using Offline Mode setting is in gradle which is right side of the Android Studioenter image description here

Ritesh
  • 533
  • 2
  • 7
  • 18