今天遇到了一个导入第三方库的时候,报这个错。

Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found. <a href="openFile:D:\Git

Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found. <a href="openFile:D:\Git

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

Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found. <a href="openFile:D:\Git

这后面的都可以删了

最终的代码

Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found. <a href="openFile:D:\Git



 后面的配置是git配置  和项目无关,是上传GitHub的git配置