java 如何使用 Ubuntu 14.04 在离线模式下为 Android Studio 安装 Gradle?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/26038421/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to install Gradle with offline mode for Android studio using Ubuntu 14.04?
提问by Sunil singhal
I'm looking a way to install Gradle
for Android studio.
My Internet speed is very slow. It's below 8kbps
and When i start Android studio it takes too much time to download gradle(Almost 8 hrs). Please help! I've the latest version of Android studio and using ubuntu 14.04 LTS
.
我正在寻找一种Gradle
为 Android Studio安装的方法。我的网速很慢。它在下面8kbps
,当我启动 Android studio 时,下载 gradle 需要太多时间(将近 8 小时)。请帮忙!我有最新版本的 Android Studio 并使用ubuntu 14.04 LTS
.
Really, Is that possible to install Gradle with Offline mode
? Please help
真的,可以用 安装 GradleOffline mode
吗?请帮忙
回答by Emma
You can download the Gradle file from http://www.gradle.org/downloads, then once you have that downloaded once you can just point Android Studio to the file within File > Settings > Gradle then check Local Gradle Distribution and browse for the location of where you have your Gradle download.
您可以从http://www.gradle.org/downloads下载 Gradle 文件,然后一旦您下载了该文件,您就可以将 Android Studio 指向 File > Settings > Gradle 中的文件,然后检查 Local Gradle Distribution 并浏览您下载 Gradle 的位置。
回答by Asis
Once you let the Gradle to be downloaded automatically for the first time while setting up your new projects ..
一旦您在设置新项目时首次自动下载 Gradle ..
On laters projects you don't have to download them again ... and again :) so left your PC for a night to download a Gradle and next morning you will have everything you needed.
在以后的项目中,您不必再次下载它们......再次:) 所以离开您的 PC 一个晚上来下载 Gradle,第二天早上您将拥有所需的一切。