在Android Studio项目目录的gradle [英] gradle directory in an Android Studio project

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

问题描述

有一个名为目录的 gradle这个的在我的Andr​​oid Studio项目。 他们不说,应该从版本控制中排除。这是什么目录?

There is a directory called gradle in my Android Studio project. They don't say it should be excluded from version control. What is in this directory?

更新#1。

Android Studio中的bug。该的gradle更新/wrapper/gradle-wrapper.properties我每次运行它​​。

Android Studio bug. It updates gradle/wrapper/gradle-wrapper.properties every time I run it.

推荐答案

里面有它摇篮的包装的gradle目录

The directory gradle having a Gradle Wrapper inside it

该包装是你应该检查到版本控制。通过与项目分发的包装,任何人都可以使用它,而无需预先安装摇篮。

The wrapper is something you should check into version control. By distributing the wrapper with your project, anyone can work with it without needing to install Gradle beforehand.

更妙的是,构建的用户都保证用摇篮的版本构建设计的工作。当然,这也是伟大的持续集成服务器(即定期生成项目的服务器),因为它需要在服务器上进行任何配置。

Even better, users of the build are guaranteed to use the version of Gradle that the build was designed to work with. Of course, this is also great for continuous integration servers (i.e. servers that regularly build your project) as it requires no configuration on the server.

这就是为什么它不是从版本控制之外。

That is why it is not excluded from version control.

这篇关于在Android Studio项目目录的gradle的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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