mrousavy / react-native-vision-camera

📸 A powerful, high-performance React Native Camera library.
https://react-native-vision-camera.com
MIT License
7.17k stars 1.05k forks source link

CodeScanner does not work on earlier versions of Android #1984

Closed igorkalmykov28 closed 10 months ago

igorkalmykov28 commented 10 months ago

Question

I'm currently facing an issue where the QR code scanning doesn't work on my device with Android 7.1.2 installed.

Has anyone encountered this issue with support for this library on earlier Android versions and can provide any solutions or guidance?

What I tried

No response

VisionCamera Version

3.3.1

Additional information

mrousavy commented 10 months ago

Try changing this line in node_modules/react-native-vision-camera/android/build.gradle:

https://github.com/mrousavy/react-native-vision-camera/blob/18e69269d49f38de11693cbec61ee9e280a1f6e9/package/android/build.gradle#L147

to

implementation 'com.google.mlkit:barcode-scanning:17.2.0'

then rebuild your app and see if that works then.

igorkalmykov28 commented 10 months ago

@mrousavy I tried to do it, but unfortunately it didn't help.

mrousavy commented 10 months ago

Can't help you. No logs or build errors or nothing attached.