问题
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
回答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.
来源:https://stackoverflow.com/questions/61099251/how-to-solve-this-error-of-android-studio