10

I ran my android project after almost a week and I got this message:

Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to "a8faa180fc282060c9b8ec88f9bdcc9072121284"

How do I update my Plugins? I am using android Studio 2.0. Here is my build.gradle project file

// 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.0.0-alpha1'

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

allprojects {
    repositories {
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}
Amit Vaghela
  • 22,772
  • 22
  • 86
  • 142
Muzahir Hussain
  • 1,009
  • 2
  • 16
  • 35

4 Answers4

5

Change com.android.tools.build:gradle:2.0.0-alpha1 to com.android.tools.build:gradle:2.0.0-alpha3 which is the latest version.

Owais Ali
  • 724
  • 1
  • 6
  • 14
  • They're not very good with updating their website, but if you go to the source (the distribution channel) you can see all of the available releases of the plugin and when they were published: https://bintray.com/android/android-tools/com.android.tools.build.gradle/ – Owais Ali Dec 31 '15 at 06:06
  • I have changed my build:gradle to 2.0.0-alpha3 but it is still giving the same error. – Muzahir Hussain Dec 31 '15 at 06:08
  • 1
    @user3082254 - Rebuild project – Vinay W Dec 31 '15 at 06:09
5

Open your IDE. Open a project. Then look for the following:

If you are using Windows you go to Help -> Check for updates

If you are using Mac, you go to Android Studio (next to the Mac symbol, in the top left) -> Check for updates

Alternatively when you launch your SDK Manger, it automatically searches for updates to your plugins. Navigate to SDK Tools.

Alexander Abakumov
  • 13,617
  • 16
  • 88
  • 129
TejjD
  • 2,571
  • 1
  • 17
  • 37
3

UDPATE (may-2016)

update to lastest

dependencies {
    classpath 'com.android.tools.build:gradle:2.1.0'
  }

You can specify the Gradle version in either the File > Project Structure > Project menu in Android Studio, or by editing the Gradle distribution reference in the gradle/wrapper/gradle-wrapper.properties file

distributionUrl = https\://services.gradle.org/distributions/gradle-2.10-all.zip

check gradle revisions

The Android Gradle Plugin and Gradle
 Android Gradle Plugin    Requires Gradle
 1.0.0 - 1.1.3     2.2.1 - 2.3
 1.2.0 - 1.3.1     2.2.1 - 2.9
 1.5.0     2.2.1+
 2.*   2.10+

check answer for update gradle

Community
  • 1
  • 1
Amit Vaghela
  • 22,772
  • 22
  • 86
  • 142
2

Change the line

classpath 'com.android.tools.build:gradle:2.0.0-alpha1'

to a latest version like

classpath 'com.android.tools.build:gradle:2.0.0-alpha3 (latest version at the moment of answering)

insomniac
  • 11,146
  • 6
  • 44
  • 55