Example works when I run it, but if I copy the example code to a new flutter project I get this error. It never prompts for the permission to use camera. I already set the permission in android/app/src/main and android/app/src/debug and android/app/src/profile
<uses-permission android:name="android.permission.CAMERA" />
Heres the error:
W/CameraBase( 9110): An error occurred while connecting to camera 0: Status(-8, EX_SERVICE_SPECIFIC): '1: validateClientPermissionsLocked:978: Caller "com.example.bartest" (PID 10135, UID 9110) cannot open camera "0" without camera permission'
Example works when I run it, but if I copy the example code to a new flutter project I get this error. It never prompts for the permission to use camera. I already set the permission in android/app/src/main and android/app/src/debug and android/app/src/profile
<uses-permission android:name="android.permission.CAMERA" />
Heres the error:
W/CameraBase( 9110): An error occurred while connecting to camera 0: Status(-8, EX_SERVICE_SPECIFIC): '1: validateClientPermissionsLocked:978: Caller "com.example.bartest" (PID 10135, UID 9110) cannot open camera "0" without camera permission'