Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/string/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android上的条形码扫描?_Android_Barcode_Google Vision - Fatal编程技术网

Android上的条形码扫描?

Android上的条形码扫描?,android,barcode,google-vision,Android,Barcode,Google Vision,我有一个android应用程序,它有一个扫描条形码的功能,我目前正在项目中使用Google Vision library,它在几天前才开始运行,这会产生以下错误: 06-04 12:19:18.979 6752 9626 I ChmraDebugLogger: [11] com.google.android.gms.vision.barcode 06-04 12:19:18.987 15536 16738 W DynamiteModule: Local module descriptor c

我有一个android应用程序,它有一个扫描条形码的功能,我目前正在项目中使用Google Vision library,它在几天前才开始运行,这会产生以下错误:

06-04 12:19:18.979  6752  9626 I ChmraDebugLogger: [11] com.google.android.gms.vision.barcode
06-04 12:19:18.987 15536 16738 W DynamiteModule: Local module descriptor class for com.google.android.gms.vision.barcode not found.
06-04 12:19:18.987 15536 16738 I DynamiteModule: Considering local module com.google.android.gms.vision.barcode:0 and remote module com.google.android.gms.vision.barcode:0
06-04 12:19:18.988 15536 16738 E Vision  : Error loading module com.google.android.gms.vision.barcode optional module true: gf: No acceptable module found. Local version is 0 and remote version is 0.
06-04 12:19:18.988 15536 16738 I Vision  : Request download for engine barcode is a no-op because rate limiting
06-04 12:19:18.989 15536 16738 W DynamiteModule: Local module descriptor class for com.google.android.gms.vision.dynamite.barcode not found.
06-04 12:19:18.990  6752  9626 W ProviderHelper: Unknown dynamite feature vision.dynamite.barcode
06-04 12:19:18.998 15536 16738 I DynamiteModule: Considering local module com.google.android.gms.vision.dynamite.barcode:0 and remote module com.google.android.gms.vision.dynamite.barcode:0
我挖掘了很多,尝试了很多解决方案,包括清除数据、撤销和授予相机许可等等。。。但没有一个成功

我问是否有我可能忘记测试的解决方案,或者有更好的开源库(不包括ZXing,因为它处于维护模式)可以使用


注意:日志中最重要的部分是
请求下载引擎条形码是不可操作的,因为速率限制
,我不知道为什么会发生这种情况。

我和许多开发人员一样使用Zxing库很长时间了,但在Zxing进入维护模式后,我开始使用journeyapps。你可以肯定地检查它,我在一个严肃的商业应用程序中使用这个库,一年多以来没有任何问题。每天使用手机摄像头扫描大约300000个条形码。这是链接:

您可以尝试谷歌的示例代码()来验证GMS是否可以正常工作


如果您的GMS无法工作,您可能需要更新它。如果您的GMS可以工作,请参考谷歌的示例代码修改您的项目。

您也可以使用firebase vision one,在上已经有一个回购示例github@Abdul-Firbase MLKit处于测试阶段,我无法在生产中使用它。你试过谷歌的吗?如果你正确阅读了这个问题,我已经提到我正在使用vision,基于谷歌的样本代码?你没有提到谷歌的示例代码是否可以工作。是的,它一直在工作,直到我遇到问题:
请求下载引擎条形码是不可行的,因为速率限制
,我不知道为什么@MaskedMan我最近测试了Google的代码,我的系统运行良好。你的GMS版本是什么?它是
18.0.0
,但我更新到
20.1.0
,问题仍然存在。谢谢你的建议,但我个人更喜欢它