错误 - 您的一个插件需要gradle android构建工具来构建 [英] Error - One of your plugins required the gradle android build tool to build

查看:268
本文介绍了错误 - 您的一个插件需要gradle android构建工具来构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用Phonegap Build构建我的Android应用程序,但我收到此错误

I am trying to build my android app using Phonegap Build, but I am getting this error


错误 - gradle android build工具建立

Error - One of your plugins required the gradle android build tool to build

我在这里缺少什么?

推荐答案

Cordova / Phonegap切换到使用Gradle而不是Ant的构建工具。 Gradle允许插件动态请求库依赖,而不必将它们捆绑为JAR,所以较新的插件倾向于喜欢Gradle,因为它与其他插件一起发挥得更好。

Cordova/Phonegap switched to using Gradle instead of Ant for its build tool. Gradle allows plugins to dynamically request library dependencies rather than have to bundle them as JARs, so newer plugins tend to prefer Gradle as it plays better alongside other plugins.

AFAIK Ant仍然是Phonegap Build的默认值(请参见此处),但您可以指定Gradle使用以下偏好:

AFAIK Ant is still the default for Phonegap Build (see here), but you can specify Gradle using the following preference:

<preference name="android-build-tool" value="gradle" />

这篇关于错误 - 您的一个插件需要gradle android构建工具来构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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