How to solve this error of Android Studio?

亡梦爱人 提交于 2021-01-29 19:20:09

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!