Reputation: 1033
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
}
Upvotes: 10
Views: 17609
Reputation: 2571
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.
Upvotes: 5
Reputation: 11756
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)
Upvotes: 2
Reputation: 22955
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
Upvotes: 3
Reputation: 724
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.
Upvotes: 5