0

A problem occurred configuring root project 'My Application'.

Could not resolve all artifacts for configuration ':classpath'. Could not resolve com.android.tools.build:gradle:3.6.2. Required by: project : No cached version of com.android.tools.build:gradle:3.6.2 available for offline mode. No cached version of com.android.tools.build:gradle:3.6.2 available for offline mode.

This is my error and I don't know how to solve this please help me to solve this

MMG
  • 3,226
  • 5
  • 16
  • 43

1 Answers1

1

In Android Studio select

View > Tool Windows > Gradle

from the menu bar.Here On the top of the Gradle window ,click on Toggle Offline Mode button in the Gradle window. Image attached

Android_id
  • 1,521
  • 1
  • 15
  • 33