Open cjohn001 opened 4 years ago
Same error System.err: An uncaught Exception occurred on "main" thread. System.err: Unable to create application com.tns.NativeScriptApplication: com.tns.NativeScriptException: Error calling module function System.err: TypeError: Cannot read property 'tasks' of undefined System.err: File: (file:///node_modules/nativescript-plugin-firebase/mlkit/barcodescanning/index.js:7:0) System.err:
My versions
"tns-android": { "version": "6.2.0" } and "nativescript-plugin-firebase": "^10.5.2",
Any help will be highly appreciated, thank you ...
@sudhakar, Hello, it seems like the error is related to the android simulator which provides a kind of virtual camera in which you can setup a virtual scene to capture an image. The first time this simulation is loaded there seems to not exist an image preset. This seems to be responsible for the crash. Maybe use a different app to once start the simulation, The issue stopped appearing to me after this even if I am using new simulator images.
Best regards, Christoph
As a quick workaround drop support for inverse code scanning.
<MLKitBarcodeScanner ... supportInverseBarcodes="false" ...
@EddyVerbruggen can you help here? It seems that call for java function doesn`t work..
So gyus, i found it out.
Just rename
node_modules\@nativescript\firebase\platforms\android\nativescript-firebase-mlkit-helper.jar-disabled
to
node_modules\@nativescript\firebase\platforms\android\nativescript-firebase-mlkit-helper.jar
I`ll create PR to solve this.
Hello together, I am trying to use the Barcode scanner with live video capture. On IOS the barcode scanner is running as expected. On an android device (Android 8.0) and also on an emulator (Android 9.0) the scanner fails with the same error:
Stacktrace from device:
Stacktrace from Emulator:
Has someone an idea what is going wrong here or how I can work arround the issue? Thanks for your help.