作者热门文章
- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我刚刚获得 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”时,我收到与上面相同的构建失败消息。
最佳答案
您使用的是 Gradle 1.4,并且教程声称已经使用 Gradle 1.12 进行了测试,因此如果可能,您可以简单地尝试将 Gradle 升级到 1.12。
jcenter() 是根据以下内容添加到 Gradle 1.7 中的: https://stackoverflow.com/a/27477763/4563229
使用另一个答案中描述的包装器也应该有效。
关于hadoop - 不耐烦的第 1 部分 gradle 公会的级联失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30992525/
我是一名优秀的程序员,十分优秀!