Skip to content Skip to sidebar Skip to footer

Android Studio Offline Add `android Plugin For Gradle`

I use Android Studio 3.1.2 with Gradle 4.4 and have to force Gradle to do off-line work, because when I use it normally (on-line), it takes to long to sync and fails. At first I go

Solution 1:

This is from android studio manual from this link.

Turn on Offline Mode for Gradle: If you have limited bandwitch, turn on Offline Mode to prevent Gradle from attempting to download missing dependencies during your build. When Offline Mode is on, Gradle will issue a build failure if you are missing any dependencies, instead of attempting to download them. To turn on Offline Mode, proceed as follows:

  • Click File > Settings (on a Mac, Android Studio > Preferences) to open the Settings dialog.

  • In the left pane, expand Build, Execution, Deployment and then click Gradle.

  • Under Global Gradle settings, check the Offline work checkbox.

  • Click Apply or OK for your changes to take effect.

Solution 2:

In android studio Go to setting menu > Built,Execution and development option > Gradle > mark/unmark on your offline work option and sync your project.try this.

Post a Comment for "Android Studio Offline Add `android Plugin For Gradle`"