Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Download and install Android studio gradle offline

I have been having internet issues, so installing gradle for android studio has been a big issue, so I downloaded the zip file. However, I dont know how to install it offline and set Android studio to use the offline version. I need help.

enter image description here

like image 717
David Essien Avatar asked May 11 '18 11:05

David Essien


3 Answers

  • 1st open below link and download the latest complete version of Gradle

    https://gradle.org/releases/

Now you find your path where your android studio install

then Find .gradle folder, normally gradle is present here...

C:\Users\**YourAccountFolder**\.gradle\wrapper\dists\

Now paste your .zip file in dists folder and Extract.

Now open android Studio Go to

File > Settings > Build, Execute, Deployment > Gradle >

Now in Dialog select Use Local gradle distribution and paste path of your folder where extract .zip file.

then apply and OK

now you can update your gradle(app) And Go to file, setting same as like above path and in dialog SELECT Offline work

Apply and Ok.

like image 61
Ali Avatar answered Oct 23 '22 00:10

Ali


  • Download gradle zip file
  • Open the gradle-wrapper.properties file from your android project, path specified below

my-app\gradle\wrapper\gradle-wrapper.properties

  • Set the distributionUrl to point to the download zip location, for example

distributionUrl=file:///C:/Users/username/Downloads/Compressed/gradle-4.10.2-all.zip

Done!

Now build the project and Android Studio will install the gradle.

like image 28
Vivek Avatar answered Oct 23 '22 00:10

Vivek


In June 2021 im using Android Studio 4.2.1 and I could enable gradle offline mode using the method outlined in the docs below.

Instructions Image

https://developer.android.com/studio/releases#3.6-gradle-offline-ui

like image 27
Khoudnami Avatar answered Oct 23 '22 01:10

Khoudnami