quickstart-android: Cannot run sample app due to failing download of barcode lib

Describe your environment

  • Android device: Huawei P9 Lite
  • Android OS version: 7.0
  • Google Play Services version: 12.5.86
  • Firebase/Play Services SDK version: 16.0.0

Steps to reproduce:

  1. Add sample app within Firebase console
  2. Follow steps e.g. import google-services.json
  3. Run app

Observed Results:

  • Barcode (and for that matter any other) detection doesn’t work.
[ 05-28 14:14:37.027   539:11107 E/         ]
void hw::COutMetaSplitBase::dump_thermal_meter(monitor_t): open  failed!
05-28 14:14:37.044 10888-10932/com.google.firebase.samples.apps.mlkit W/DynamiteModule: Local module descriptor class for com.google.android.gms.vision.dynamite.barcode not found.
05-28 14:14:37.049 10888-10932/com.google.firebase.samples.apps.mlkit I/DynamiteModule: Considering local module com.google.android.gms.vision.dynamite.barcode:0 and remote module com.google.android.gms.vision.dynamite.barcode:0
05-28 14:14:37.050 10888-10932/com.google.firebase.samples.apps.mlkit W/DynamiteModule: Local module descriptor class for com.google.android.gms.vision.dynamite not found.
05-28 14:14:37.056 10888-10932/com.google.firebase.samples.apps.mlkit I/DynamiteModule: Considering local module com.google.android.gms.vision.dynamite:0 and remote module com.google.android.gms.vision.dynamite:1702
05-28 14:14:37.056 10888-10932/com.google.firebase.samples.apps.mlkit I/DynamiteModule: Selected remote version of com.google.android.gms.vision.dynamite, version >= 1702
05-28 14:14:37.061 10888-10932/com.google.firebase.samples.apps.mlkit I/Vision: Loading library libbarhopper.so
05-28 14:14:37.061 10888-10932/com.google.firebase.samples.apps.mlkit I/Vision: libbarhopper.so library load status: false

In a first step to fix this state (as with the current google vision barcode scanner issue) I also cleared the app data of the Play Services installation (12.6.85) and was able to get this sample app running, logcat eventually indicating that the download succeeded (detection works from here):

05-28 14:19:33.880 13685-13730/com.google.firebase.samples.apps.mlkit W/DynamiteModule: Local module descriptor class for com.google.android.gms.vision.dynamite.barcode not found.
05-28 14:19:33.886 13685-13730/com.google.firebase.samples.apps.mlkit I/DynamiteModule: Considering local module com.google.android.gms.vision.dynamite.barcode:0 and remote module com.google.android.gms.vision.dynamite.barcode:0
05-28 14:19:33.887 13685-13730/com.google.firebase.samples.apps.mlkit W/DynamiteModule: Local module descriptor class for com.google.android.gms.vision.dynamite not found.
05-28 14:19:33.892 13685-13730/com.google.firebase.samples.apps.mlkit I/DynamiteModule: Considering local module com.google.android.gms.vision.dynamite:0 and remote module com.google.android.gms.vision.dynamite:1702
05-28 14:19:33.892 13685-13730/com.google.firebase.samples.apps.mlkit I/DynamiteModule: Selected remote version of com.google.android.gms.vision.dynamite, version >= 1702
05-28 14:19:33.897 13685-13730/com.google.firebase.samples.apps.mlkit I/Vision: Loading library libbarhopper.so
05-28 14:19:33.902 13685-13730/com.google.firebase.samples.apps.mlkit W/linker: /data/data/com.google.android.gms/app_vision/barcode/libs/arm64-v8a/libbarhopper.so: unused DT entry: type 0x7ffffffd arg 0x6dd
05-28 14:19:33.904 13685-13730/com.google.firebase.samples.apps.mlkit I/Vision: libbarhopper.so library load status: true

However, a restart of the device brings back the above mentioned download issue. This is something out of user’s control, so I was wondering if there’s any other workaround available for ML.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 1
  • Comments: 23 (3 by maintainers)

Most upvoted comments

Also see:

I hope you can fix QR code detection when using ML Kit, Mobile Vision. It happens on all Huawei devices where Play Services 12.5.73 or higher is installed. (problem exists since around May 8th). Somehow the barcode native lib cannot be downloaded on those devices.

@fvermeulen Would you mind grabbing a full bug report and share to us? You can e.g. upload it to Google Drive and share by link. Thanks!