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
}
Step 1: Open the Android Studio and go to File > Settings as shown in the below image. Step 2: After hitting on the Settings button a pop-up screen will arise like the following. Here select Plugins in the left panel.
Open the Preferences window by clicking File > Settings (on Mac, Android Studio > Preferences). In the left panel, click Appearance & Behavior > System Settings > Updates. Be sure that Automatically check for updates is checked, then select a channel from the drop-down list (see figure 1). Click Apply or OK.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With