Gradle - Could not find method mavenRepo() for arguments

左心房为你撑大大i 提交于 2019-12-05 00:47:14

mavenRepo is deprecated since Gradle 1.8 and it is removed in Gradle 2.0.

This is an incorrect repository in build.gradle, line 69:

mavenRepo name: 'conjars', url: 'http://conjars.org/repo/'

And another one in /etc/s3Upload.gradle

mavenRepo name: 'monochromeroad', url: 'http://conjars.org/repo/'

Replace them with the following repository:

maven {
    url 'http://conjars.org/repo/'
}

They are using an older version of gradle. I guess they removed the old mavenRepo method in version 2.0. Here is a reference when they marked it as deprecated.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!