得到错误"摇篮1.10版是必需的。现在的版本是1.12&QUOT。执行与当QUOT;包装的gradle"? [英] Getting error "Gradle version 1.10 is required. Current version is 1.12." when executing "gradle wrapper"?

查看:200
本文介绍了得到错误"摇篮1.10版是必需的。现在的版本是1.12&QUOT。执行与当QUOT;包装的gradle"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图执行包装的gradle 为Android项目,这引发错误:

I'm trying to execute gradle wrapper for an Android project, and this error is raised:

时出现问题评估根项目的myapp。

A problem occurred evaluating root project 'myapp'.

>是必需的摇篮版本1.10。现在的版本是1.12。如果使用的是包装的gradle,请编辑/Users/dude/myapp/gradle/wrapper/gradle-wrapper.properties的distributionUrl到gradle-1.10-all.zip

> Gradle version 1.10 is required. Current version is 1.12. If using the gradle wrapper, try editing the distributionUrl in /Users/dude/myapp/gradle/wrapper/gradle-wrapper.properties to gradle-1.10-all.zip

我的包装任务看起来是这样的:

My wrapper task in build.gradle looks like this:

task wrapper(type: Wrapper) {
    gradleVersion = "1.12"
}

我最近通过自制软件更新到V1.12摇篮。难道不支持什么?如果是这样,我在哪里可以检查这样的事情?

I recently updated to Gradle v1.12 via Homebrew. Is it not supported or something? If so, where can I check this sort of thing?

推荐答案

在摇篮Android插件的特定版本要求摇篮(至少目前如此)的特定版本,它似乎是你的摇篮Android插件的版本要求摇篮1.10。您可能会发现在摇篮Android插件的文档中它的更多信息。

A particular version of the Gradle Android plugin requires a particular version of Gradle (at least for now), and it seems that your version of the Gradle Android plugin requires Gradle 1.10. You might find more information on this in the documentation for the Gradle Android plugin.

PS:该包装任务之上创建与(生成) gradlew 脚本,它是运行摇篮的preferred方式运行摇篮所需的文件(无手动安装,每次构建可以在其 gradle-wrapper.properties 这摇篮版本需要)来指定。

PS: The wrapper task above creates the files necessary to run Gradle with the (generated) gradlew script, which is the preferred way to run Gradle (no manual install, every build can specify in its gradle-wrapper.properties which Gradle version it needs).

这篇关于得到错误"摇篮1.10版是必需的。现在的版本是1.12&QUOT。执行与当QUOT;包装的gradle"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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