I got this resolved by adding the permissions in the android.manifest file:
<uses-permission android:name="android.permission.CAMERA" />