android - Android Studio 中 gradle-wrapper.properties 的用途是什么?

标签 android android-studio android-gradle-plugin

我已将我的 gradle-wrapper.properties 从 2.8 更新到 2.10。但我想知道它在 Android Studio 中的用途是什么。因为我们在 eclipse 中没有看到任何 gradle-wrapper 属性。

最佳答案

Gradle Wrapper 是一种类型批处理或 shell 脚本,可下载并自动配置 Gradle 以执行任务。想象一下,您想要运行 Gradle 构建,那么您需要在您的计算机上下载并安装 Gradle,因此这个概念允许在不需要安装 Gradle 的情况下分发我们的项目和构建配置。

还有他们的官方gradle webiste说:

Most tools require installation on your computer before you can use them. If the installation is easy, you may think that’s fine. But it can be an unnecessary burden on the users of the build. Equally importantly, will the user install the right version of the tool for the build? What if they’re building an old version of the software? The Gradle Wrapper solves both these problems and is the preferred way of starting a Gradle build.

关于android - Android Studio 中 gradle-wrapper.properties 的用途是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36929732/

相关文章:

android - Flutter谷歌地图插件中的getbounds

android - Facebook SDK 依赖冲突

Android QuickContactBadge 带有类似 Android Lollipop 的字母

java - 谷歌地图 : Saving markers to text file/other?

android - Gradle 构建错误 : aidl. exe 以非零退出值 1 完成

android-gradle-plugin - 如何在Android Studio中查看gradle版本?

android - 将 adb 选项/参数传递给 android gradle 任务(安装、connectedCheck 等)

java - 无法获取完整长度的消息

android - 如何将撰写预览导出为 png/jpg

android - Jacoco gradle 'exclude'无法在Kotlin的Android项目中使用