Repository navigation
Open
Labels
📸 VisionPlay Services Vision and MLKit Vision (Barcode Scanning, Face Recognition, Text Recognition)
Description
Affected app
Name: Hydra
Package id: be.ugent.zeus.hydra
Describe the bug
When tapping the barcode scan button, it shows a toast with 'Network failure' and the following logs show up in logcat:
07-28 22:58:31.336 10700 10700 E FormActivity: Error while getting data.
07-28 22:58:31.336 10700 10700 E FormActivity: com.google.mlkit.common.MlKitException: Code scanner module is not supported on current Google Play Services version, please upgrade.
07-28 22:58:31.336 10700 10700 E FormActivity: at be.ugent.zeus.hydra.common.barcode.GoogleBarcodeScanner.getBarcode(GoogleBarcodeScanner.java:42)
07-28 22:58:31.336 10700 10700 E FormActivity: at be.ugent.zeus.hydra.wpi.tap.cart.CartActivity.lambda$onCreate$0(CartActivity.java:5)
07-28 22:58:31.336 10700 10700 E FormActivity: at be.ugent.zeus.hydra.wpi.tap.cart.CartActivity.n(Unknown Source:0)
07-28 22:58:31.336 10700 10700 E FormActivity: at be.ugent.zeus.hydra.feed.cards.event.a.onClick(Unknown Source:18)
07-28 22:58:31.336 10700 10700 E FormActivity: at android.view.View.performClick(View.java:7455)
07-28 22:58:31.336 10700 10700 E FormActivity: at com.google.android.material.button.MaterialButton.performClick(MaterialButton.java:2)
07-28 22:58:31.336 10700 10700 E FormActivity: at android.view.View.performClickInternal(View.java:7432)
07-28 22:58:31.336 10700 10700 E FormActivity: at android.view.View.access$3700(View.java:835)
07-28 22:58:31.336 10700 10700 E FormActivity: at android.view.View$PerformClick.run(View.java:28810)
07-28 22:58:31.336 10700 10700 E FormActivity: at android.os.Handler.handleCallback(Handler.java:938)
07-28 22:58:31.336 10700 10700 E FormActivity: at android.os.Handler.dispatchMessage(Handler.java:99)
07-28 22:58:31.336 10700 10700 E FormActivity: at android.os.Looper.loopOnce(Looper.java:201)
07-28 22:58:31.336 10700 10700 E FormActivity: at android.os.Looper.loop(Looper.java:288)
07-28 22:58:31.336 10700 10700 E FormActivity: at android.app.ActivityThread.main(ActivityThread.java:7870)
07-28 22:58:31.336 10700 10700 E FormActivity: at java.lang.reflect.Method.invoke(Native Method)
07-28 22:58:31.336 10700 10700 E FormActivity: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
07-28 22:58:31.336 10700 10700 E FormActivity: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
To Reproduce
Steps to reproduce the behavior:
- Go to 'Settings', 'About'
- Tap 'Made by Zeus WPI' twice to unlock Zeus mode
- Exit 'Settings', go to the new 'Zeus mode' entry
- Fill in credentials in 'Manage login data' in the top right of the app
- Press 'Order', then 'Scan'
- It now logs
com.google.mlkit.common.MlKitException: Code scanner module is not supported on current Google Play Services version, please upgrade.in logcat
Expected behavior
I expect a barcode reader window to show, letting me scan barcodes
System
Android Version: 12
Custom ROM: LineageOS 19.1 MicroG
microG
microG Core version: 0.2.24.214816
microG Self-Check results: All ticked
Additional context
The app is open-source, that might make testing easier. See https://github.com/ZeusWPI/hydra-android
Metadata
Metadata
Assignees
Labels
📸 VisionPlay Services Vision and MLKit Vision (Barcode Scanning, Face Recognition, Text Recognition)
Activity
Danacus commentedon Jul 30, 2022
I think MLKit has not (yet?) been implemented in microg.
ltguillaume commentedon Aug 3, 2022
Same here, for my (currently useless) banking app:
ArchangeGabriel commentedon Jan 8, 2023
Related: #1742
paolo-caroni commentedon Jul 24, 2023
It seems that is supported old Mobile Vision API only (and only for barcode), also would be a good idea support tensorflow on microg, MLkit is strongly based on tensorflow and gms offer tensorflow API for app that need it. But honestly this is the game of the mouse and the cat, google deprecate API very fast and replace it in time seems VERY difficult for a FOSS project.
flame-0 commentedon Jul 4, 2026
i can reproduce this with steam