Search code examples
androidandroid-studiogradleandroid-gradle-plugingradlew

Android Studio Gradle version - Gradle version 2.8 is required


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 the gradle-wrapper-property and it's already 2.10.

Also in File-Project Structure-Project, gradle-version is also 2.10

No idea how this happened, I've also restarted android-studio many times.


Solution

  • Updating the version of android studio from 1.4 to 1.5.1 fixed this problem for me.