teslamotors / react-native-camera-kit

A high performance, easy to use, rock solid camera library for React Native apps.
MIT License
2.48k stars 588 forks source link

Android: The application crashes when scanning the bar code #449

Open alenseferovic1 opened 2 years ago

alenseferovic1 commented 2 years ago
Screenshot 2022-03-02 at 09 20 23
brascene commented 2 years ago

Same issue here, iOS works perfectly, but for Android had a lot of issues..

s0rta commented 2 years ago

are either of you use mlkit barcode scanning elsewhere in your tool? specifically the newest release where they move the barcode class to the barcode common package? just removed any other mention of the barcode scanning mlkit tooling from my repo and found camera kit to work. Going to bed, but it the fix might be using the same version of mlkit that camera kit uses.

alenseferovic1 commented 2 years ago

are either of you use mlkit barcode scanning elsewhere in your tool? specifically the newest release where they move the barcode class to the barcode common package? just removed any other mention of the barcode scanning mlkit tooling from my repo and found camera kit to work. Going to bed, but it the fix might be using the same version of mlkit that camera kit uses.

Thank you for help. The version is the reason for this issue. I had to add implementation 'com.google.mlkit:barcode-scanning:16.2.0' in build.gradle and now it works.

diptiman-svmx commented 2 years ago

If you are using any mlkit:barcode-scanning dependency in your application level build.gradle file, kindly remove that and do a clean and rebuild.