Cannot enable Gradle's offline mode on Android Studio 3.6

孤街浪徒 提交于 2020-03-09 04:45:45

问题


I'm using the new Android Studio 3.6 Canary 9 to test new functionalities, and I cannot enable Gradle's offline mode.

In Android Studio Preferences window, tab Gradle, I cannot find the entry point to enable it. Is this a bug or Google has disabled Gradle's offline mode?

Note that --offline option is still working when using command line.


回答1:


From the Android Studio 3.6 new features blog post:

New location to toggle Gradle's offline mode 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 Gradle offline button in the Gradle panel..

Here is the link -- hope that helps!




回答2:


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




回答3:


Oh in the last release of the android studio the location of the offline mode option has changed!

But it is so easy to just click on Gradle on the right side of the android studio or (go to View > Tools windows and select Gradle! )

and Like a photo Turn on or Turn off the Wifi Icon :




回答4:


To enable offline mode you can follow below steps:

1. Click "Gradle" on the right corner
2. Click button "Toggle offline mode" to disable



回答5:


After Update Go To File >> Project Structure >> Suggestions and on the Right side pane Click update



来源:https://stackoverflow.com/questions/57797772/cannot-enable-gradles-offline-mode-on-android-studio-3-6

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