得到错误"摇篮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 eval...

我试图执行包装的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).

阅读全文

相关推荐

最新文章