mintware-de / flutter_barcode_reader

A flutter plugin for reading 2D barcodes and QR codes.
MIT License
628 stars 464 forks source link

validateClientPermissionsLocked #224

Closed zuwuko closed 3 years ago

zuwuko commented 4 years ago

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'

devtronic commented 3 years ago

I can't reproduce the issue, sorry. Please provide a minimal example how to reproduce the problem.