Element uses-permission#android.permission.CAMERA duplicated with element declared at AndroidManifest.xml Element uses-permission#android.permission.CAMERA duplicated with element declared at AndroidManifest.xml angular angular

Element uses-permission#android.permission.CAMERA duplicated with element declared at AndroidManifest.xml


As it is very clear from the Error message that two elements i.e. plugins are using same permission. To resolve such issue you can do the following:

  • Comment out/remove the line of uses-permission and uses-feature in ...\plugins\phonegap-plugin-barcodescanner\plugin.xml

    <uses-permission android:name="android.permission.CAMERA"/><uses-feature android:name="android.hardware.camera">
  • rm platform android

  • add platform android

  • ionic cordova run android

No need to touch AndroidManifest.xml file and also it is not advisable.

Hope this will help.