Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
354 views
in Technique[技术] by (71.8m points)

android - 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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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 Projectgradlewrappergradle-wrapper.properties files field distributionUrl like this:

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

try this


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...