需要 Gradle 1.8 版.当前版本是 1.6 [英] Gradle version 1.8 is required. Current version is 1.6

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

问题描述

有一个新的 Android Studio 更新:https://sites.google.com/a/android.com/tools/recent/androidstudio030released

There is a new Android Studio update: https://sites.google.com/a/android.com/tools/recent/androidstudio030released

链接说:

Gradle 1.8 和Android Gradle 插件版本 0.6.+

The improved performance is made possible by changes in Gradle 1.8 and Android Gradle plugin version 0.6.+

所以我像这样改变了我的依赖项:

So I changed my dependencies like this:

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:0.6.+'
    }

但我不知道在哪里可以将 Gradle 1.6 更改为 1.8 ...

But I don't know where I can change the Gradle 1.6 to 1.8 ...

当我编译应用程序时出现此错误:

And when I compile the app I've got this error:

Gradle:评估项目时出现问题.

Gradle: A problem occurred evaluating project.

Gradle 版本 1.8 是必需的.当前版本是1.6

Gradle version 1.8 is required. Current version is 1.6

在哪里可以更改版本?

提前致谢:)

推荐答案

我不确定这是否对您有帮助,但这里是为我解决的问题:

I am not sure if this will help you but here is what fixed it for me:

在你的项目中打开这个文件:

Open up this file in your project:

/gradle/wrapper/gradle-wrapper.properties

编辑 distributionUrl 行并设置它:

Edit the distributionUrl line and set it too:

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

重建您的项目.

更新:您现在可能想要使用 gradle-2.8-all.zip.

Update: You might want to use gradle-2.8-all.zip now.

这篇关于需要 Gradle 1.8 版.当前版本是 1.6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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