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 P
Please follow below steps : 1.Open Your project. 2.Go to the Left side of the Gradle button. 3. 4.Click button above image show . 5. if this type of view you are not in offline mode. 6. Go to Build and rebucild the project.
All above point is work for me.
After Update Go To File >> Project Structure >> Suggestions and on the Right side pane Click update
To enable offline mode you can follow below steps:
1. Click "Gradle" on the right corner
2. Click button "Toggle offline mode" to disable
To clarify it. In your Android Studio...
View > Tool Windows > Gradle
And then this...
And this...
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
For Flutter Projects
You WON'T find this option (View > Tool Windows > Gradle
)
Spent hours trying to find it.
You have to open your Android project in another Android Studio window.
Go to Open
and select the Android project:
When the new window opens, follow the recommended step and voila:
You can now find the Gradle view window to the right.
When working with Flutter, this is how you make Gradle specific changes.