0
I'n新手摇篮,我看到这一段:如果使用Gradle包装的构建文件,gradle wrapper如何保存表单安装gradle?
The Gradle Wrapper is the preferred way of starting a Gradle build. It consists of a batch script for Windows support and a shell script for support on OS X and Linux. These scripts allow you to run a Gradle build without requiring that Gradle be installed on your system. You can install the wrapper into your project by adding the following lines to the build.gradle
,但我启用了gradle这个warpper在build.gradle
是唯一的gradle安装后使用。没有?
如何在没有安装gradle的情况下运行一次?我加入
task wrapper(type: Wrapper) { gradleVersion = '1.11' }
到的build.gradle文件时运行它。没有?
'已运行一次(它确实需要另一个Gradle安装)'您如何在没有安装gradle的情况下运行一次?在向build.gradle文件添加'任务包装器(类型:包装器){gradleVersion ='1.11' }'时,我运行它。没有? – 2014-12-13 18:54:29
正如我所说,这*做*需要另一个Gradle安装,或另一个Gradle构建,您可以从中复制'wrapper'目录和'gradlew(.bat)'文件。但是,这是团队中一个人的一次性操作。 – 2014-12-13 19:16:29