在Android studio中引用第三方库的时候,报这个错。

Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found.

搜了一下。

"这是原因为该项目的原作者会把项目发布到maven中央仓库中,所以在gradle中添加了相关的maven发布任务。

咱们又不能连到maven的仓库,所以我们把你要导入的第三方build.gradle中"[1]无用的部分都删掉。

按照作者的方法

删掉除了

android{}

dependencies{}

之外的部分后还是不行,与pulltorefresh库中的build.gradle对比了一下,

在最顶部保留

apply plugin: 'com.android.library'

rebuild一下,项目好用了!

[1] http://blog.csdn.net/cxzczxcxzc/article/details/48976843

转载于:https://www.cnblogs.com/touchmore/p/5588140.html

解决 Plugin with id 'com.github.dcendents.android-maven' not found.相关推荐

  1. 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 http://bl ...

  2. Android Studio导入别人的module提示错误Plugin with id ‘com.jfrog.bintray‘ not found.

    1 问题 Android Studio导入别人的module提示错误如下 Plugin with id 'com.jfrog.bintray' not found. Plugin with id 'c ...

  3. github上Android开源项目汇总(带效果图)

    第一部分 个性化控件(View) 主要介绍那些不错个性化的 View,包括 ListView.ActionBar.Menu.ViewPager.Gallery.GridView.ImageView.P ...

  4. 2017 github 上android 源码(适合工作中开发)

    转载: http://blog.csdn.NET/a774057695/article/details/49889437 https://github.com/XinRan5312/Android-o ...

  5. Plugin with id 'com.novoda.bintray-release' not found.的解决方案

    import Module的时候,有时候会提示Plugin with id 'com.novoda.bintray-release' not found. 点击Open File,定位到该Module ...

  6. 不是吧阿sir,你不会还不知道Github可以当做Maven仓库吧

    前几天听说github更新了UI,今天休假逛了逛,发现了一个好玩的东西.github居然可以用来作为Maven仓库. # 基本Steps: 生成用于发布.安装和删除 GitHub 包的访问令牌. 配置 ...

  7. Android项目中出现的Plugin with id ‘kotlin-android‘ not found解决方法

    Android项目中出现的Plugin with id 'kotlin-android' not found解决方法 参考文章: (1)Android项目中出现的Plugin with id 'kot ...

  8. Android stduio之Plugin with id ‘com.android.application‘ not found解决办法

    1.错误 Plugin with id 'com.android.application' not found 2.解决办法 打开项目的build.gradle,看是否有buildscript{},如 ...

  9. 导入工程后编译不过,报错: apply plugin: 'com.github.dcendents.android-maven'

    编译时报错: Error:(2, 0) No service of type Factory apply plugin: 'com.github.dcendents.android-maven' 原来 ...

最新文章

  1. 可靠性测试-故障模型库
  2. vba宏语言_三分钟了解Excel的程序语言VBA
  3. Java使用Jolt连接Tuxedo服务器
  4. Tomcat和myeclipse的相关操作以及myeclipse的激活方法
  5. 使用http请求发送文件,文件标题乱码
  6. 学习随笔#13 模型预测控制(MPC)
  7. 通俗易懂的讲解梯度,散度,旋度(有图很好理解)!!!
  8. 水面反光如何拍摄_反光倒影的摄影怎么拍?
  9. cad画多段线时不显示轨迹_cad画多段线时不显示轨迹_CAD画的线段显示不出来的解决方法...
  10. 在伦敦生活工作-2(由于本人懒惰的关系,这篇估计是最后一篇了,呵呵)
  11. 小说作者推荐:炤炤酒合集
  12. 20221219 圣诞节,音乐圣诞树
  13. CA认证简单介绍与工作流程
  14. 秒杀系统的设计五大原则
  15. 素数求解的C语言方法
  16. 照片拼图什么软件好?试试Design Your Collage mac
  17. 贪心法 第2关:求一个数列的极差
  18. 软件自动化测试——入门、进阶与实战
  19. jquery的toFixed方法的正确使用
  20. A Novel Task Allocation for Maximizing Reliability Considering Fault-Tolerant in VANET ... 学习笔记

热门文章

  1. Linux 实操———— Shell 远程执行命令
  2. android logcat 根据包名过滤,adb logcat通过包名过滤(dos命令find后跟变量)
  3. app名字变为android+api,一起来做个app吧 wanandroid开放API
  4. linux复制目录命令夹,linux复制目录(文件夹)和打包命令
  5. 如何用手机打开dcm格式图片_如何防止自己的图片被盗用?这 4 招教你优雅加水印...
  6. c语言设计指导实训,C语言程序设计实训指导
  7. 《SpringCloud超级入门》Eureka注册中心开启密码认证《十二》
  8. 最大化窗口设置_Qt学习笔记4(窗口操作及插入图片)
  9. 360手机浏览器_网信办:UC、QQ、360、搜狗等8款手机浏览器被纳入首批整治范围...
  10. java从键盘上录入信息