No Cached Version Gradle Plugin Available for offline mode

核能气质少年 提交于 2021-02-18 17:43:06

问题


I haven't used Android Studio in a while, but decided to update everything and create a new project and I get the above error, if I go to Preferences -> Build, Execution, Deployment -> Gradle.

There's no option to 'Work Offline' as suggested here among other places No cached version of gradle available for offline mode

I've also used the 'Command Shift A' and searched for 'Offline' and I get nothing. Anyway to disable this?


回答1:


As per the Android Studio 3.6 release notes:

To enable or disable Gradle's offline mode, first select View > Tool Windows > Gradle from the menu bar. Then, near the top of the Gradle window, click Toggle Offline Mode




回答2:


To Enable or Disable Gradle Offline Mode In Android Studio 3.6.1 please see in picture below :

if you want demo video so please have a look on : https://www.youtube.com/watch?v=50WxM7mu6pg




回答3:


To enable or disable Gradle's offline mode, View > Tool Windows > Gradle from the menu bar. Then, near the top of the Gradle window, click Toggle Offline Mode

you can also watch this video https://youtu.be/lbCM8N8ItRI




回答4:


The toggle button always says - 'Toggle Offline Mode' and never changes to 'Toggle Online Mode' How will I know whether gradle sync will run in offline mode or online mode?



来源:https://stackoverflow.com/questions/60495080/enable-disable-gradle-offline-mode-in-android-studio-3-6-1

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