如何在 Android Studio 中导入现有项目时设置 gradle home [英] How to set gradle home while importing existing project in Android studio

查看:43
本文介绍了如何在 Android Studio 中导入现有项目时设置 gradle home的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 Android Studio 中导入现有项目时设置 gradle home.在尝试导入时,我需要设置此路径.

How to set gradle home while importing existing project in Android studio. While trying to import I need to set up this path.

推荐答案

gradle 插件(包含 gradle 的捆绑版本)应该已经安装在 where/you/installed/android-studio/plugins/gradle 所以你不需要手动下载它.根据 Android Studio 的版本,最后一个目录可能是 where/you/installed/android-studio/gradle/gradle-xyz(xyz 是版本,因此请检查您的文件系统以获取确切路径).

The gradle plugin (which contains a bundled version of gradle) should be already installed in where/you/installed/android-studio/plugins/gradle so you shouldn't need to manually download it. Depending on the version of Android Studio, that last directory may be where/you/installed/android-studio/gradle/gradle-x.y.z (x.y.z is the version, so check your filesystem for the exact path).

如果你打算在 Android Studio 之外进行 gradle 开发或者想要一个不同的版本,你可以单独下载并指向那个路径,但如果你只想让 Android Studio 使用捆绑版本,这个路径应该做

If you intend on doing gradle development outside Android Studio or want a different version, you can download it separately and point it at that path, but if you only want to get Android Studio working with the bundled version, this path should do it.

这篇关于如何在 Android Studio 中导入现有项目时设置 gradle home的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆