googlesamples / googlesamples/mlkit

[Bug report] Title for the bug

Open
#635 15 comments 0 reactions 1 assignee Claimed by @zhouyiself View on GitHub
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
![123](https://user-images.githubusercontent.com/63633963/223982420-7746996e-b033-4d5b-87ae-dc434927af77.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.