Android Studio 总是为每个新项目下载 gradle?
我刚刚建立了 Android 工作室,它总是为每个新项目下载 gradle,完成下载需要很长时间,因为这里的连接不是太强.那么无论如何我可以手动将gradle zip添加到android studio中吗?这样我就不用每次都下载了吗?
I just established Android studio and it always download gradle for every new project and it takes ages to complete the download as connections here are not too strong. so is there anyway i could manually add the gradle zip into the android studio? so i wont have to download it every time?
是的.首先从 https://www.gradle.org/downloads 下载 gradle 并将其解压缩到本地文件夹.
Yes. First download gradle from https://www.gradle.org/downloads and unzip it to a local folder.
然后在 Android Studio 上,转到 Preferences -> Gradle 并从使用默认 gradle 包装器(推荐)"或使用可自定义的 gradle 包装器"切换到使用本地 gradle 分发版"并指向您安装的文件夹gradle 和 Android Studio 不会每次都尝试下载它.
Then on Android Studio, go to Preferences -> Gradle and switch from "Use default gradle wrapper (recommended)" or "Use customizable gradle wrapper" to "Use local gradle distribution" and point to the folder where you've installed gradle and Android Studio won't try to download it every single time.