简体   繁体   English

为什么在构建项目时Android Studio会自动下载Gradle?

[英]Why does Android Studio auto-download Gradle when I build my project?

When I import a project to Android Studio, it auto-downloads the Gradle zip. 当我将项目导入Android Studio时,它会自动下载Gradle zip。 Is there a way to build my project without having to download the file? 有没有办法建立我的项目而无需下载文件?

在此输入图像描述

You can set your android studio to work offline so that it doesnt have to download anything. 您可以将Android工作室设置为脱机工作,以便它不必下载任何内容。 Go: 走:

File -> Settings -> Build Tools -> Gradle -> Offline work 文件 - >设置 - >构建工具 - > Gradle - >离线工作

在此输入图像描述

Also set the Command line options to --offline in your Compiler options: 还可以在“编译器”选项中将命令行选项设置为--offline

在此输入图像描述

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 android:自动接受gradle的SDK自动下载许可 - android: automatically accept licence for gradle's SDK auto-download Android-Studio:我的项目中没有build.gradle,为什么? - Android-Studio: No build.gradle in my project, why? Android Studio 2.4错误:未安装platform-tools软件包,禁用SDK自动下载 - Android Studio 2.4 Error:platform-tools package is not installed and SDK auto-download is disabled 为什么当我尝试打开我的 android studio 项目时会出现构建错误? - Why i get build error when i try to open my android studio project? 自动在多个Android设备上自动下载应用以进行测试? - Auto-download app on multiple Android devices wirelessly for testing? 为什么我在 Android Studio 中的项目级 build.gradle 与应有的不同? - Why my project-level build.gradle in Android Studio is different that it is supposed to be? 在Android Studio中更新android项目后,我的gradle构建未运行 - My gradle build is not running after updating the android project in android studio 建立Android专案时,ionic无法下载Gradle 2.2.1 - ionic failed to download gradle 2.2.1 when build android project 使用 android studio 配置 react-native 项目(构建 gradle)时出错。 我想构建 gradle 脚本,以便在我的应用程序中使用 firebase - Errrors, when configuring react-native project (building gradle) with android studio. I want to build gradle scripts for using firebase with my app 每次我打开一个项目时,Android Studio 都会尝试下载一个 gradle 版本 - Android Studio tries to download a version of gradle everytime i open a project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM