且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在 Android Studio 中导入现有项目时设置 gradle home

更新时间:2022-12-31 10:41:27

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.