googlesamples / googlesamples/mlkit

[Bug report] barcode-scanning doesn't ship riscv64 binary

Open
#872 0 comments 2 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**
AGP updated the default ABI filters to include `riscv64`, which causes apps using `barcode-scanning` without setting ABI filters to fail when uploading to the Play Store. This is because `libbarhopper_v3.so` is not available for the `riscv64` ABI within the AAR.

```
> 403 Forbidden
PUT https://androidpublisher.googleapis.com/upload/androidpublisher/v3/applications/{appId}/edits/{editId}/bundles?uploadType=resumable&upload_id={uploadId}
***
"code": 403,
"errors": [
***
"domain": "global",
"message": "Your app declares support for 'riscv64' architecture, but the following libraries are missing: [libandroidx.graphics.path.so, libbarhopper_v3.so, libbugsnag-plugin-android-anr.so, libbugsnag-root-detection.so, libdatastore_shared_counter.so]. Update your app to rely on libraries that support 'riscv64' architecture.",
"reason": "forbidden"
***
],
"message": "Your app declares support for 'riscv64' architecture, but the following libraries are missing: [libandroidx.graphics.path.so, libbarhopper_v3.so, libbugsnag-plugin-android-anr.so, libbugsnag-root-detection.so, libdatastore_shared_counter.so]. Update your app to rely on libraries that support 'riscv64' architecture.",
"status": "PERMISSION_DENIED"
***
```

**Expected behavior**
`barcode-scanning` should probably build `libbarhopper_v3.so` for `riscv64`, or the ABI restriction should be documented.

**SDK Info:**
`com.google.mlkit:barcode-scanning:17.3.0`

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.