Download and install Android studio gradle offline

纵然是瞬间 提交于 2020-03-17 09:26:59

问题


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.


回答1:


  • 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.




回答2:


  • 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.




回答3:


Common link for all versions of Android Studio depending on Platforms. Also options like with SDK or without SDK can be chosen.

All Downloads are offline Installers. Download Studio from here



来源:https://stackoverflow.com/questions/50291289/download-and-install-android-studio-gradle-offline

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!