'Flutter document_scanner issues with accessing camera

D/JavaCameraView( 6116): SUCCESS init openCV: 0
W/CameraBase( 6116): An error occurred while connecting to camera 0: Status(-8, EX_SERVICE_SPECIFIC): '10: connectHelper:1740: Failed to initialize camera "0": Function not implemented (-38)'
W/System.err( 6116): java.lang.RuntimeException: Fail to connect to camera service

I am receiving this error when using the posted example on the pub.dev for Flutter document_scanner (https://pub.dev/packages/document_scanner). The entire screen just becomes black when I push to a page on my app that contains the example code.

I have ensured to ask the user for camera permission, and I confirmed in my emulator's settings that camera access was granted to my app--so this can't be an issue with permissoins. Any ideas? Thanks!



Sources

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

Source: Stack Overflow

Solution Source