Gradle version 2.2 is required. Current version is 2.10
Current work around is to overrideVersionCheck: In your build.gradle
buildscript {
System.properties['com.android.build.gradle.overrideVersionCheck'] = 'true'
...
}
Check this link for more Details
Just Change in build.gradle file
classpath 'com.android.tools.build:gradle:1.3.0'
To
classpath 'com.android.tools.build:gradle:2.0.0'
Now
GoTo
->menu choose File
->Invalidate Caches/Restart
...Choose first option:
Invalidate and Restart
Android Studio would restart.
After this, it should work normally.
- Open
gradle-wrapper.properties
Change this line:
distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip
with
distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-all.zip
- Go to
build.gradle
(Project: your_app_name) Change this line
classpath 'com.android.tools.build:gradle:XXX'
to this
classpath 'com.android.tools.build:gradle:2.0.0-alpha3'
or
classpath 'com.android.tools.build:gradle:1.5.0'
- Don't click
Sync Now
- From menu choose
File -> Invalidate Caches/Restart...
- Choose first option:
Invalidate and Restart
Android Studio would restart. After this, it should work normally
Hope it help
Based on https://developer.android.com/studio/releases/gradle-plugin.html ...
The following table lists which version of Gradle is required for each version of the Android plugin for Gradle. For the best performance, you should use the latest possible version of both Gradle and the Android plugin.
So, the Plugin version with Required Gradle version should be match.