Android Studio Gradle error: 'android-maven' not found

I'd like to add CircularReveal library to my app. I have copied circualreveal folder to .../MyApplication/libs/. This is my settings.gradle file

include ':app', ':libs:circualreveal'

But when I try to sync project with gradle files there is an error

\AndroidstudioProjects\MyApplication\libs\circualreveal\build.gradle
Error:(2, 0) Plugin with id 'android-maven' not found.

Here is \AndroidstudioProjects\MyApplication\libs\circualreveal\build.gradle file

apply plugin: 'com.android.library'
apply plugin: 'android-maven'

android {
    compileSdkVersion 21
    buildToolsVersion "21.1.1"


    defaultConfig {
        minSdkVersion 10
        targetSdkVersion 21
    }
}

dependencies {
    compile 'com.nineoldandroids:library:2.4.0'
}

What am I doing wrong?

Answers


You need to add class path in your project build.gradle. It will look like this:

dependencies {
  classpath 'com.android.tools.build:gradle:1.3.0'
  classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
}

Need Your Help

Implementation of ZipCrypto / Zip 2.0 encryption in java

java encryption zip

I'm trying o implement the zipcrypto / zip 2.0 encryption algoritm to deal with encrypted zip files as discussed in

ST_DWithin takes parameter as degree , not meters , why?

postgresql gis postgis srid

The ST_DWithin document says , the third parameter(distance) is in meters. But when I execute some query , it seems it takes the 3rd parameter as 'degree' ?