'Ionic Cordova qr scanner along with camera preview

I working on an Ionic application that consists of both functionalities. QR code scanner and Camera. Modules Used: QR: @ionic-native/qr-scanner Camera: @ionic-native/camera-preview

If I install both these modules then this is the following error I face: Element uses-permission#android.permission.CAMERA at AndroidManifest.xml:21:5-65 duplicated with element declared at AndroidManifest.xml:18:5-90



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source