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.
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.
gradle-wrapper.properties
file from your android project, path specified below my-app\gradle\wrapper\gradle-wrapper.properties
distributionUrl
to point to the download zip location, for exampledistributionUrl=file:///C:/Users/username/Downloads/Compressed/gradle-4.10.2-all.zip
Done!
Now build the project and Android Studio will install the gradle.
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.
https://developer.android.com/studio/releases#3.6-gradle-offline-ui
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With