码迷,mamicode.com
首页 > 移动开发 > 详细

解决 Plugin with id 'com.github.dcendents.android-maven' not found.

时间:2016-06-15 18:47:56      阅读:799      评论:0      收藏:0      [点我收藏+]

标签:

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

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

搜了一下。

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

咱们又不能连到maven的仓库,所以我们把你要导入的第三方build.gradle中。

 

按照作者的方法

删掉除了

android{}
dependencies{}

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

在最顶部保留

apply plugin: ‘com.android.library‘

rebuild一下,项目好用了!

 

解决 Plugin with id 'com.github.dcendents.android-maven' not found.

标签:

原文地址:http://www.cnblogs.com/touchmore/p/5588140.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!