Android Studio Gradle version - Gradle version 2.8 is required
Solution 1
Updating the version of android studio from 1.4 to 1.5.1 fixed this problem for me.
Solution 2
For those that still need help, an answer on another post did it for me link.
You need to change Settings > Builds,Execution,Deployment > Build Tools > Gradle >Gradle home path
Or set Use default gradle wrapper and edit Project\gradle\wrapper\gradle-wrapper.properties
files field distributionUrl
like this
distributionUrl=https://services.gradle.org/distributions/gradle-2.10-all.zip
Solution 3
I don't think that changing Gradle tools to version 1.5.0
is necessary, but if you're using 2.0-snapshot
or beta
version of gradle, I recommend you to change it to 1.5.0
.
This error:
Error:(10, 1) A problem occurred evaluating project ':app'. > Failed to apply plugin [id 'com.android.application'] > Gradle version 2.8 is required. Current version is 2.4. If using the gradle wrapper, try editing the distributionUrl in
C:\Users...\gradle\wrapper\gradle-wrapper.properties to gradle-2.8-all.zip
only tells you that your project's Gradle system is a bit outdated and need to be updated to newer version.
Open your project Android Studio
and in navigator on the left find file called gradle-wrapper.properties
. It should have a content like this:
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip
Change the last line with distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-all.zip
It should work.
Solution 4
Go To Android Preference and Just change Project level Settings to Use default gradle wrapper (recommended).
Edward
Updated on July 27, 2022Comments
-
Edward almost 2 years
I'm trying to build an Android project but the following error occurred
Error:(10, 1) A problem occurred evaluating project ':app'. > Failed to apply plugin [id 'com.android.application'] > Gradle version 2.8 is required. Current version is 2.4. If using the gradle wrapper, try editing the distributionUrl in C:\Users\...\gradle\wrapper\gradle-wrapper.properties to gradle-2.8-all.zip
It seem something's wrong with the
Gradle
version, however I checked thegradle-wrapper-property
and it's already 2.10.Also in File-Project Structure-Project,
gradle-version
is also 2.10No idea how this happened, I've also restarted android-studio many times.