Failed to apply plugin [id 'com.android.library']
<p>I try to compile a Android Project which uses another library called HoloGraphLibrary. But when I want to compile the following error occurs:</p>

<p>Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to "9e19705c8c53c2712ca27200bfa349e4757e2264"</p>

<p>Error:(1, 1) A problem occurred evaluating project ':HoloGraphLibrary'.</p>

<blockquote>
  <p>Failed to apply plugin [id 'com.android.library']
  Could not create plugin of type 'LibraryPlugin'.</p>
</blockquote>

<p>The source of that error is:</p>

<pre><code>apply plugin: 'com.android.library'

android {
    compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)
    buildToolsVersion project.ANDROID_BUILD_TOOLS_VERSION

    sourceSets {
        main {
            java.srcDirs = ['src']
            res.srcDirs = ['res']
            manifest.srcFile 'AndroidManifest.xml'
        }
    }
}
</code></pre>

<p>which is the build.gradle of the library. The build.gradle of the app looks as follows:</p>

<pre><code>apply plugin: 'com.android.application'

android {
    compileSdkVersion 21
    buildToolsVersion '19.1.0'
    defaultConfig {
        applicationId "XXXXXXXXXXX"
        minSdkVersion 14
        targetSdkVersion 21
        versionCode 2
        versionName '1.0.1'
    }
buildTypes {
    release {
        minifyEnabled true
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
sourceSets {
    main {
        res.srcDirs = ['src/main/res', 'src/main/res/tut', 'src/main/res/tutorial']
        resources.srcDirs = ['src/main/resources', 'src/main/resources/te']
    }
}
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'com.android.support:appcompat-v7:21.0.3'
    compile project(":HoloGraphLibrary")
}
</code></pre>

<p>I just don't see how i can fix this. Any hints?</p>

<p>Thank you</p>

<p>--------------- EDIT ----------------</p>

<p>This is the top level gradle file.</p>

<pre><code>// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.1.0-beta1'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
    }
}
</code></pre>

<p>Unfortunately, the suggestion of G.K. did not work!</p>

<p>I have even tried to set the ANDROID_DAILY_OVERRIDE variable to what it has said to, but again the same error.</p>