Reputation: 1
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
Upvotes: 0
Views: 326
Reputation: 1591
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.
Upvotes: 1