Android 添加Library出现错误Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found.
来源:互联网 发布:软件为什么需要预约 编辑:程序博客网 时间:2024/06/01 10:01
今天项目中,添加Library的时候,出现一个错误,Error:(2, 0) Plugin with id ‘com.github.dcendents.android-maven’ not found.
解决办法:在project目录下的build.gradle 添加如下代码
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.1'classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
然后运行又开始出现新的问题了,Error:(2, 0) No service of type Factory available in ProjectScopeServices.
解决办法:更新maven-plugin的依赖
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
这样问题就解决了,
本人菜鸟一个,有什么不对的地方,希望大家指出评论,大神勿喷,大家一起学习进步!
阅读全文
1 0
- Android 添加Library出现错误Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found.
- Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found.
- Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found解决办法
- Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found解决办法
- Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found
- Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found解决办法
- Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found.
- Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found.
- Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found解决办法
- Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found解决办法
- Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found
- Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found.
- Error:(2, 0) Plugin with id ‘com.github.dcendents.android-maven’ not found解决办法
- Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found解决办法
- Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found解决办法
- Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found解决办法
- Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found解决办法
- Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found
- ntp服务器配置
- 删除 IDEA 的所有设置,缓存,插件和log
- 超简单仿QQ步数显示控件
- nodejs--promise之bluebird部分API
- 碎片实现多个页签切换
- Android 添加Library出现错误Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found.
- android模拟触控power键
- 10个让设计简单干净的黄金法则
- 论敏捷开发的优缺点
- LifeRay的portlet开发(使用Eclipse)- 想说Hello不容易!
- Servlet与jsp的通信
- webservice Client 生成
- iOS中UIWebView与WKWebView、JavaScript与OC交互、Cookie管理看我就够(下)
- javascript学习笔记(一)