ML Kit 条形码检测 - isOperational() 始终为 false - 未找到可接受的模块
ML Kit Barcode Detection - isOperational() is always false - No acceptable module found
我正在使用 ML Kit 条码检测开发 android 应用程序,但我无法使其在目标设备上运行。
在检测器上调用 isOperational() 时它总是 returns false,表示所需的依赖项尚未下载到设备。根据条形码检测教程:
"It's possible that the first time our barcode detector runs, Google Play Services won't be ready to process barcodes yet. So we need to check if our detector is operational before we use it. If it isn't, we may have to wait for a download to complete, or let our users know that they need to find an internet connection or clear some space on their device."
但是,运行了几次之后,还是不行。
深入研究日志我发现了这个:
"Error loading module com.google.android.gms.vision.barcode optional module true: gg: No acceptable module found. The local version is 0 and the remote version is 0."
我 运行 使用 android 9 的 Galaxy Tab A (2019),所有内容(包括 google 播放服务)都是最新的。这是一款 b运行d 新平板电脑,有 21GB 免费空间 space。
运行 Galaxy s20 上的相同应用程序,问题不存在。第一次尝试 运行。
以防万一其他人遇到这个问题,我想我可能刚刚使用了旧版本的 api。所以我开始在 android studio 中重新使用 firebase 助手,并使用了那个条形码 reader。
我正在使用 ML Kit 条码检测开发 android 应用程序,但我无法使其在目标设备上运行。
在检测器上调用 isOperational() 时它总是 returns false,表示所需的依赖项尚未下载到设备。根据条形码检测教程:
"It's possible that the first time our barcode detector runs, Google Play Services won't be ready to process barcodes yet. So we need to check if our detector is operational before we use it. If it isn't, we may have to wait for a download to complete, or let our users know that they need to find an internet connection or clear some space on their device."
但是,运行了几次之后,还是不行。
深入研究日志我发现了这个: "Error loading module com.google.android.gms.vision.barcode optional module true: gg: No acceptable module found. The local version is 0 and the remote version is 0."
我 运行 使用 android 9 的 Galaxy Tab A (2019),所有内容(包括 google 播放服务)都是最新的。这是一款 b运行d 新平板电脑,有 21GB 免费空间 space。
运行 Galaxy s20 上的相同应用程序,问题不存在。第一次尝试 运行。
以防万一其他人遇到这个问题,我想我可能刚刚使用了旧版本的 api。所以我开始在 android studio 中重新使用 firebase 助手,并使用了那个条形码 reader。