Android Studio gradle sync failed: no cached version

2.8k views Asked by At

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.

2

There are 2 answers

0
Ritesh On

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

0
Shubham Raitka On

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