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

半腔热情 提交于 2019-12-12 02:54:25

问题


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

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

What am I missing here?


回答1:


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 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" />


来源:https://stackoverflow.com/questions/35890064/error-one-of-your-plugins-required-the-gradle-android-build-tool-to-build

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!