First of all, when we started an hybrid project, is a good practice make sure that every single plugin has been working from the beginning if we don't want a headache.
I tried different ways to work with those plugins, but the only way I could do it was using some specific versions of android platform and barcodeScanner plugin.
Android platform: 5.1.1
barcodeScanner: 0.7.0
Besides, I found (and I don't know why yet) that is highly recommended (by me :) ) to install the Camera plugin first than another one, because for some reason (weird reason actually), this plugin remove all the files project in the www folder, and reset it to the fabric android template.
So, in order to make a functional project with our plugins we have to do the next:
cordova create myproject
cd myproject/
cordova platform add android@5.1.1
cordova plugin add cordova-plugin-camera
cordova plugin add cordova-plugin-barcodescanner@0.7.0
I made this on macOS High Sierra, and I don't know if this command work on Windows or another OS, but it must.





