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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With