必须使用Gradle 2.10版.当前版本是2.8错误 [英] Gradle version 2.10 is required. Current version is 2.8 Error
问题描述
项目中正在使用以下内容-
Following things are using in the project-
android studio版本-2.0预览版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
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
到
https\://services.gradle.org/distributions/gradle-2.10-all.zip
但仍然出现以下错误
but still getting the following error
错误:(1,1)评估项目':app'时发生问题. 无法应用插件[id'com.android.application'] 必须使用Gradle 2.10版.当前版本是2.8.如果使用gradle包装器,请尝试将/Users/manishpathak/Project/live/code/ICCCricketWorldCup2015Schedule/gradle/wrapper/gradle-wrapper.properties中的distributionUrl编辑为gradle-2.10-all.zip
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
推荐答案
将您的android studio版本更新为1.5.1.您的问题将得到解决. 如果您的android版本已更新.试试看:
update your android studio version to 1.5.1. Your problem will be solved. If your android version is updated. Try it out:
更改设置>构建,执行,部署>构建工具> Gradle> Gradle主路径 或
设置使用默认的gradle包装器并编辑 Project \ gradle \ wrapper \ gradle-wrapper.properties 文件字段 distributionUrl ,如下所示:
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
这篇关于必须使用Gradle 2.10版.当前版本是2.8错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!