需要 Gradle 2.10 版.当前版本是 2.8 错误 [英] Gradle version 2.10 is required. Current version is 2.8 Error

查看:31
本文介绍了需要 Gradle 2.10 版.当前版本是 2.8 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

项目中使用了以下东西-

Following things are using in the project-

android studio 版本 - 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

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 主路径

set Use default gradle wrapper and edit Project\gradle\wrapper\gradle-wrapper.properties files field 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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆