today I just imported a sample app from Android SDK as a module in my project (analytics) and suddenly I got this gradle error when I try to sync it: Plugin is too old
Replace your class path with something ambiguous like this. Its a solution and it works but it may not be a good solution.
classpath 'com.android.tools.build:gradle:+'
The best way is replacing the + with the latest version of gradle
If you want to continue to use the newest development versions then this problem can reoccur each time your version is far enough out of date.
I've been keeping an up-to-date list of the most current development versions as well as the stable version on my answer to this similar question, so that I can fix it each time I get a new warning:
Android Studio 2.0 - Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE
You can always check the latest gradle plugin version here: https://bintray.com/android/android-tools/com.android.tools.build.gradle
So as of today you should use:
classpath 'com.android.tools.build:gradle:2.2.2'
accordingly.
I'm using Android Data Binding and I have the same problem today.
To solve it, change:
classpath "com.android.databinding:dataBinder:1.0-rc0"
To:
classpath "com.android.databinding:dataBinder:1.0-rc1"
1.0-rc0 still could be found on jcenter now, I don't know why it couldn't be use.
In the past months, I used a "preview" version of Android Studio. I tried to switch back to the "stable" releases for the software updates but it wasn't enough and I got this famous error you talk of.
Uninstalling my Android Studio 2.2.preview and installing latest stable Android Studio (2.1) fixed it for me :)
Just in case someone is struggling with this, in my case I'm using Gradle 1.4 beta 1 and I NEED to keep it. So in order to make Android Studio works go to the terminal and run this:
launchctl setenv ANDROID_DAILY_OVERRIDE <your-value-on-error-message>
Restart Android Studio and the project will build again.
Kudos to UPDATE 2 here: https://emmanuelbernard.com/blog/2012/05/09/setting-global-variables-intellij/