您的位置:首页 > 其它

Error:(2, 0) Cause: org/gradle/api/publication/maven/internal/DefaultMavenFactory

2016-07-14 09:14 501 查看
导入github上的工程报错

Error:(2, 0) Cause: org/gradle/api/publication/maven/internal/DefaultMavenFactory
<a href="openFile:XXX\build.gradle">Open File</a>


点击Open File指向了

apply plugin: 'com.github.dcendents.android-maven'


实际上问题发生在build.gradle(Project)中

buildscript {
repositories {
jcenter()
}
dependencies {
//你的其他配置
classpath 'com.github.dcendents:android-maven-plugin:1.3'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}




classpath 'com.github.dcendents:android-maven-plugin:1.2'


改为

classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'


再编译就能通过了

另附

Plugin VersionPlugin NameDependency InformationGradle Version
1.0android-mavencom.github.dcendents:android-maven-plugin:1.01.8+
1.1android-mavencom.github.dcendents:android-maven-plugin:1.11.12+
1.2com.github.dcendents.android-mavencom.github.dcendents:android-maven-plugin:1.22.2+
1.3com.github.dcendents.android-mavencom.github.dcendents:android-maven-gradle-plugin:1.32.4+
1.4com.github.dcendents.android-mavencom.github.dcendents:android-maven-gradle-plugin:1.42.14+
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: