salih kallai salih kallai - 3 months ago 49x
Android Question

Error:(2, 0) Plugin with id '' not found

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) Plugin with id '' not found.


First of all you can use this library as dependency simply adding to your module/build.gradle this dependency:

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

If you want to import locally as module, you have to add this part in your module/build.gradle: (this part is added in the top-level file in the library)

buildscript {
    repositories {
    dependencies {
        classpath ''
        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.