Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradle version 2.10 is required. Current version is 2.8 Error

Following things are using in the project-

The android studio version - 2.0 Preview 4.
ANDROID_BUILD_MIN_SDK_VERSION=9
ANDROID_BUILD_TARGET_SDK_VERSION=22
ANDROID_BUILD_TOOLS_VERSION=22.0.1
ANDROID_BUILD_SDK_VERSION=22

classpath 'com.android.tools.build:gradle:2.0.0-alpha9'

As per the error I changed the distribution url

https\://services.gradle.org/distributions/gradle-2.8-all.zip

to

https\://services.gradle.org/distributions/gradle-2.10-all.zip

but still getting the following error

Error:(1, 1) A problem occurred evaluating project ':app'. Failed to apply plugin [id 'com.android.application'] Gradle version 2.10 is required. Current version is 2.8. If using the gradle wrapper, try editing the distributionUrl in /Users/manishpathak/Project/live/code/ICCCricketWorldCup2015Schedule/gradle/wrapper/gradle-wrapper.properties to gradle-2.10-all.zip

like image 968
MANISH PATHAK Avatar asked Feb 02 '16 12:02

MANISH PATHAK


1 Answers

update your android studio version to 1.5.1. Your problem will be solved. If your android version is updated. Try it out:

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

try this

like image 97
Learning Always Avatar answered Oct 01 '22 17:10

Learning Always