'Trying to use Firebase MLKit barcode scanner, "Waiting for the barcode detection module to be downloaded, please wait" appears on emulator screen
I am trying to make a barcode scanner using Java and MLKit in Android Studio, but keep getting this message when I run the app in the emulator. I have an internet connection and I have tried clearing the emulated device's data. Running the emulation on a Pixel 2 XL API 29.
Can provide code if needed, but there are no errors in my code currently. I followed a tutorial line for line but for some reason cannot get it to work.
Messages in Run:
I/DynamiteModule: Considering local module com.google.android.gms.vision.dynamite:0 and remote module com.google.android.gms.vision.dynamite:2702
Selected remote version of com.google.android.gms.vision.dynamite, version >= 2702
V/DynamiteModule: Dynamite loader version >= 2, using loadModule2NoCrashUtils
I/Vision: Loading library libbarhopper.so
I/Vision: libbarhopper.so library load status: false
I/Vision: Request download for engine barcode is a no-op because rate limiting
W/ample.scannerv: Accessing hidden method Lsun/misc/Unsafe;>getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/DynamiteModule: Local module descriptor class for com.google.android.gms.vision.dynamite.barcode not found.
thank you in advance.
Solution 1:[1]
Hmm... MLKit barcode scanner needs for sure real device with a camera. I'm quite sure it is useless to try to test app with an emulator.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Reijo Korhonen |
