不耐烦的第 1 部分 gradle 行会的级联失败
cascading for the impatient part 1 gradle guild fails
我刚刚获得 Gradle 1.4 和 Hadoop 2.7.0。在我的 Ubuntu 14.04 虚拟机上。
我在 Impatient tuturial 存储库的 Cascading 的第 1 部分目录中。
当我 运行 'gradle clean jar' 时,我得到以下信息:
FAILURE: Build failed with an exception.
* Where:
Build file '/home/Impatient/build.gradle' line: 29
* What went wrong:
A problem occurred evaluating root project 'impatient'.
> Could not find method jcenter() for arguments [] on repository container.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 5.502 secs
有人可以指出正确的方向来解决这个问题吗?
此外,tutorial 建议使用 IDE,我安装了推荐的 Intellij。当我 运行 'gradle ideaModule' 时,我收到与上面相同的构建失败消息。
根据这个问题尝试以下解决方案 - Could not find method jcenter() for arguments [] on repository container
“我 运行 遇到了同样的错误。以下方法(如此处所述)对我有用。
添加任务
task wrapper(type: Wrapper) {
gradleVersion = '2.0'
}
和运行一次。之后,开始使用 gradlew
而不是 gradle
"
您正在使用 Gradle 1.4,并且教程声称已经使用 Gradle 1.12 进行了测试,因此您可以尽可能尝试将 Gradle 升级到 1.12。
jcenter() 是在 Gradle 1.7 中添加的,根据:
使用另一个答案中描述的包装器也应该有效。
我刚刚获得 Gradle 1.4 和 Hadoop 2.7.0。在我的 Ubuntu 14.04 虚拟机上。
我在 Impatient tuturial 存储库的 Cascading 的第 1 部分目录中。
当我 运行 'gradle clean jar' 时,我得到以下信息:
FAILURE: Build failed with an exception.
* Where:
Build file '/home/Impatient/build.gradle' line: 29
* What went wrong:
A problem occurred evaluating root project 'impatient'.
> Could not find method jcenter() for arguments [] on repository container.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 5.502 secs
有人可以指出正确的方向来解决这个问题吗?
此外,tutorial 建议使用 IDE,我安装了推荐的 Intellij。当我 运行 'gradle ideaModule' 时,我收到与上面相同的构建失败消息。
根据这个问题尝试以下解决方案 - Could not find method jcenter() for arguments [] on repository container
“我 运行 遇到了同样的错误。以下方法(如此处所述)对我有用。
添加任务
task wrapper(type: Wrapper) {
gradleVersion = '2.0'
}
和运行一次。之后,开始使用 gradlew
而不是 gradle
"
您正在使用 Gradle 1.4,并且教程声称已经使用 Gradle 1.12 进行了测试,因此您可以尽可能尝试将 Gradle 升级到 1.12。
jcenter() 是在 Gradle 1.7 中添加的,根据:
使用另一个答案中描述的包装器也应该有效。