juliansteenbakker / mobile_scanner

A universal scanner for Flutter based on MLKit. Uses CameraX on Android and AVFoundation on iOS.
BSD 3-Clause "New" or "Revised" License
892 stars 515 forks source link

what is minimum SDK for Android? #1234

Open inteist opened 1 week ago

inteist commented 1 week ago

sorry if this is an ignorant question but I couldn't find this in the documentation

I have been testing the package on Android 34 but then I tried to run it on Android 27 in a simulator and when the camera activates - it goes haywire.

navaronbracke commented 1 week ago

The minimum is 21, which is also the minimum required version for CameraX and Flutter itself.

https://github.com/juliansteenbakker/mobile_scanner/blob/master/android/build.gradle#L49

What are you seeing on the emulator? Since the emulators do not have a camera, they provide a fake preview (the scene with the wood furniture and chessboard wall art). Is your emulator itself throwing errors?

inteist commented 6 days ago

On 27, I am not sure what happens exactly, but it seems it goes into an infinite loop of opening and closing the camera simulator. The screen flickers and the application force closes after a while. I have made sure I "cold reboot" the emulator.

If that is the case in terms of API (being 21) I can try to create a new emulator and see if the issue is still there.

Thanks for getting back to me on this. Appreciate it.