需要 Gradle 版本 1.8.当前版本是 1.6

Gradle version 1.8 is required. Current version is 1.6(需要 Gradle 版本 1.8.当前版本是 1.6)
本文介绍了需要 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

相关文档推荐

How can I use CClistview in COCOS2d Android?(如何在 COCOS2d Android 中使用 CClistview?)
cocos2d-android: how to display score(cocos2d-android:如何显示分数)
Sqlite database not copied from asset folder Android(Sqlite 数据库未从资产文件夹 Android 复制)
SQLite Database Copy Appears Corrupted When Generated by Device and not Emulator(SQLite 数据库副本在由设备而不是模拟器生成时出现损坏)
Android file copy(安卓文件拷贝)
Android how to detect Copy event of Edittext in android(Android如何在android中检测Edittext的Copy事件)