Phonegap 3不会将插件复制到platforms文件夹 [英] Phonegap 3 doesn't copy plugins to platforms folder
问题描述
我正在使用Phonegap3 http://phonegap.com/install/ ,但我遇到插件问题:
I'm using Phonegap3 http://phonegap.com/install/ but I'm facing an issue with plugins:
使用
phonegap create my-app
phonegap local build android
然后我添加了一个相机插件使用
then I added a camera plugin using
phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-camera.git
http://docs.phonegap.com/en/edge/cordova_camera_camera.md.html#Camera
然后使用
构建项目 phonegap local build android
它工作正常,但突然它停止工作,在投资的问题后,我发现插件不会复制到Android项目,虽然我可以列出所有插件使用
it was working fine but suddenly it stopped working, after investgating the issue I found that plugins are not copied to the android project although I can list all plugins using
phonegap local plugin list
推荐答案
它现在是固定的,问题是添加插件命令添加到平台项目的插件文件,因此构建命令不会在构建过程中复制这些文件阶段,
所以我所要做的是删除插件/ 文件夹内容和平台/ 内容,然后我做了这些步骤:
It is fixed now, the issue was that add plugin command adds to plugin files to platforms project too, so the build command not copying these files during the build phase, so all I had to do is to remove plugins/ folder content and platforms/ content then I did those steps:
-
phonegap本地构建android
-
phonegap本地插件添加https://git-wip-us.apache.org/repos/asf/cordova-plugin-camera.git
phonegap local build android
phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-camera.git
所有 add plugins命令只有在您添加所有平台后才能运行。
请检查此
这篇关于Phonegap 3不会将插件复制到platforms文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!