X-Wei / flutter_catalog

An app showcasing Flutter components, with side-by-side source code view.
MIT License
2.19k stars 558 forks source link

Barcode scanner crash the app #77

Closed tempral closed 6 months ago

tempral commented 3 years ago

right after get the photo to detect Tested on Android 8 phone

X-Wei commented 3 years ago

confirmed the issue, here are the error messages:

E/AndroidRuntime(12970): FATAL EXCEPTION: FirebaseMLHandler E/AndroidRuntime(12970): Process: io.github.x_wei.flutter_catalog, PID: 12970 E/AndroidRuntime(12970): java.lang.IncompatibleClassChangeError: Superclass com.google.firebase.ml.vision.barcode.internal.zzj of com.google.firebase.ml.vision.barcode.BarcodeDetectorCreator is declared final (declaration of 'com.google.firebase.ml.vision.barcode.BarcodeDetectorCreator' appears in /data/app/io.github.x_wei.flutter_catalog-vmddsjnh8XHL549PfLqmiQ==/base.apk:classes3.dex) E/AndroidRuntime(12970): at java.lang.VMClassLoader.findLoadedClass(Native Method) E/AndroidRuntime(12970): at java.lang.ClassLoader.findLoadedClass(ClassLoader.java:738) E/AndroidRuntime(12970): at java.lang.ClassLoader.loadClass(ClassLoader.java:363) E/AndroidRuntime(12970): at java.lang.ClassLoader.loadClass(ClassLoader.java:312)

tempral commented 3 years ago

How to fix?

X-Wei commented 6 months ago

no longer happening with latest version