googlesamples / googlesamples/mlkit
[Bug report] Title for the bug
- Dominant language
- Kotlin
- Stars
- 4.3k
- Forks
- 3.1k
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
Play service code scanner was broken this week. About week ago it's worked perfectly on my Samsung galaxy S20. Today I have next error:
InternalError: com.google.mlkit.common.MlKitException: Failed to scan code.
**To Reproduce**
`GmsBarcodeScanning.getClient(
requireContext(),
GmsBarcodeScannerOptions.Builder()
.setBarcodeFormats(Barcode.FORMAT_QR_CODE)
.build()
).startScan().addOnSuccessListener { barcode ->}.addOnFailureListener { error->
Log.e("TEST", error.toString())
}`
**Expected behavior**
Open scanner.
**SDK Info:**
com.google.android.gms:play-services-code-scanner:16.0.0-beta3
**Smartphone:**
- Samsung Galaxy S20(android 31)
- Sony xperia xz 1
**Development Environment:**
*(For Android issue feel free to skip this section)*
- Android Studio Android Studio Electric Eel | 2022.1.1 Patch 1

Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.