Question

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

I use the following library to add material design to my android project
https://github.com/navasmdc/MaterialDesignLibrary

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

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

Solution #1:

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[email protected]'
}

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 {
        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.

Respondent: salih kallai

Solution #2:

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'
Respondent: Gabriele Mariotti

Solution #3:

If you add:

classpath 'com.github.dcendents:android-maven-plugin:1.2'

it does not work some times, so add:

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

To complete, add the following lines into importing module’s build.gradle file.

buildscript { 

    repositories {
        mavenCentral()
        jcenter()
    }

    dependencies {
        classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
        classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0'
    }
}

enjoy coding.

Respondent: Deepti

Solution #4:

Import the @arr file in module dependency

Respondent: saibaba vali

The answers/resolutions are collected from stackoverflow, are licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0 .

Most Popular

To Top
India and Pakistan’s steroid-soaked rhetoric over Kashmir will come back to haunt them both clenbuterol australia bossier man pleads guilty for leadership role in anabolic steriod distribution conspiracy