您好,欢迎来到二三四教育网。
搜索
您的当前位置:首页How to fix Plugin with id 'c

How to fix Plugin with id 'c

来源:二三四教育网

问题描述:

I use the following library to add material design to my android project

But after importing it as a module, I get the following error. How can I fix it

Error:(2,0)Pluginwithid'com.github.dcendents.android-maven'notfound.

解决方法:

First of all you can use this library as dependency simply adding to yourmodule/build.gradlethis dependency:

dependencies{compile'com.github.navasmdc:MaterialDesign:1.5@aar'}

buildscript{

      repositories{

                   jcenter()

      }

      dependencies{

           classpath'com.android.tools.build:gradle:1.+'

           classpath'org.codehaus.groovy:groovy-backports-compat23:2.3.5'

           classpath'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0'classpath'com.github.dcendents:android-maven-plugin:1.2'

}

}

Pay attention that this library is not updated with the last support libraries, and doesn't use the new design support library.

Add these lines in project.gradle dependencies:

classpath'com.github.dcendents:android-maven-gradle-plugin:1.3'

classpath'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2'

Copyright © 2019- how234.cn 版权所有 赣ICP备2023008801号-2

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务