android - 在 gms 视觉中加载 com.google.android.gms.dynamite.DynamiteModule$LoadingException 时出错
问题描述
我正在尝试使用com.google.android.gms.vision.barcode
. 相机启动正常,但是当我构建检测器对象时。
BarcodeDetector barcodeDetector = new BarcodeDetector.Builder(this)
.setBarcodeFormats(Barcode.QR_CODE | Barcode.ISBN)
.build();
我在 Logcat 中收到此错误,但应用程序中没有崩溃:
E/Vision:加载可选模块 com.google.android.gms.vision.barcode 时出错:com.google.android.gms.dynamite.DynamiteModule$LoadingException:找不到可接受的模块。本地版本为 0,远程版本为 0。
并且 receiveDetections 没有检测到任何东西。谁能知道如何解决这个错误?
编辑
我正在使用这些版本的播放服务库
implementation 'com.google.android.gms:play-services-vision:20.1.2'
implementation 'com.google.android.gms:play-services-vision-common:19.1.2'
解决方案
推荐阅读
- r - 使用 emmeans 的 Box-Cox 反变换无法正常工作
- javascript - 有没有可行的解决方案在Vue js中将组件模板拆分为多个部分?
- jasper-reports - 在子数据集中引用 Main_Dataset
- html - 使用 unicode 字符输入自动完成问题
- kubernetes - Helm 图表之间的依赖关系是否应该反映微服务之间的依赖关系?
- php - PHP 图像处理
- mysql - MySQL 使用 Select 更新查询
- python - 提高大型(百万条目)列表中的索引搜索速度
- entity-framework - 两个非关系/不相关实体之间的独立关联
- python - 我可以在一组笛卡尔坐标中添加“标签”以便于读取吗?