ricnaaru / adv_camera

Advanced Camera for Flutter
BSD 3-Clause "New" or "Revised" License
54 stars 35 forks source link

Error opening Android camera #16

Closed danielbrito1987 closed 4 years ago

danielbrito1987 commented 4 years ago

When trying to call AdvCamera the following error is returning me:

E/flutter (20137): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: PlatformException(error, Attempt to invoke virtual method 'android.hardware.Camera$Parameters android.hardware.Camera.getParameters()' on a null object reference, null)

I already uninstalled and installed the plugin again and the error continues

ricnaaru commented 4 years ago

when did the error occur? while opening the camera, or while trying to take picture?

danielbrito1987 commented 4 years ago

when did the error occur? while opening the camera, or while trying to take picture?

while opening the camera

ricnaaru commented 4 years ago

please try the latest version