I'm using Phonegap3 but I'm facing an issue with plugins:
After creating project using
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
then build project using
phonegap local build 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
After searching and testing 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 removeplugins/ folder content and platforms/ content then I did those steps:
phonegap local build android
phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-camera.git
After all the add plugins commands should run only after all your platforms are added