Error:(2, 0) Cause: org/gradle/api/publication/maven/internal/DefaultMavenFactory
2016-07-14 09:14
501 查看
导入github上的工程报错
点击Open File指向了
实际上问题发生在build.gradle(Project)中
将
改为
再编译就能通过了
另附
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 Version | Plugin Name | Dependency Information | Gradle Version |
---|---|---|---|
1.0 | android-maven | com.github.dcendents:android-maven-plugin:1.0 | 1.8+ |
1.1 | android-maven | com.github.dcendents:android-maven-plugin:1.1 | 1.12+ |
1.2 | com.github.dcendents.android-maven | com.github.dcendents:android-maven-plugin:1.2 | 2.2+ |
1.3 | com.github.dcendents.android-maven | com.github.dcendents:android-maven-gradle-plugin:1.3 | 2.4+ |
1.4 | com.github.dcendents.android-maven | com.github.dcendents:android-maven-gradle-plugin:1.4 | 2.14+ |
相关文章推荐
- caffe制作数据集
- Java 匿名对象的详解
- mongo vue 批量删除表数据
- 微信分享自定义图片标题摘要-微信官方API
- ASP.NET中POST提交数据并跳转页面
- varnish安装及一些遇到的问题的解决方法
- HDU 4135 Co_prime(容斥原理、[A,B]中和n互素数个数)
- kindeditor编辑器图片水印
- WIN7系统Dubbo-Admin管理平台搭建
- kafka中写入avro数据
- 程序自杀
- jquery live hover绑定方法
- 【Linux全面学习】3.Linux如何管理分区
- 实战篇:案例解析-如何对企业网站SEO优化把脉?
- Android Activity生命周期 博客链接
- Swift - 根据图片URL获取图片的大小
- nodejs经典高并发
- 优秀的产品
- ASP.NET MVC实现多个按钮提交事件
- 1