问题
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