首页 > 解决方案 > 在 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'

标签: androidqr-code

解决方案


推荐阅读