错误 - 您的一个插件需要gradle android构建工具来构建

错误 - 您的一个插件需要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" />