简体   繁体   English

Google Vision条形码检测库未在某些设备上安装

[英]Google Vision Barcode Detection Library Not Installing On Some Devices

I'm writing an app using the new Google Play Services Vision libraries to detect barcodes. 我正在使用新的Google Play服务视觉库编写应用程序以检测条形码。

Everything works fine on most devices I've tested on, but one particular device refuses to install the native libraries (mentioned in this comment) 在我测试过的大多数设备上一切正常,但是一个特定设备拒绝安装本机库(在此评论中提到)

// Note: The first time that an app using the barcode or face API is installed on a
// device, GMS will download a native libraries to the device in order to do detection.
// Usually this completes before the app is run for the first time.  But if that
// download has not yet completed, then the above call will not detect any barcodes
// and/or faces.
//
// isOperational() can be used to check if the required native libraries are currently
// available.  The detectors will automatically become operational once the library
// downloads complete on device.

In the logs of the device, I have found this: 在设备的日志中,我发现了这个:

D/Vision  (28899): Registration status barcode_armeabi_v7a.zip: There is not enough space to perform the download.
D/Vision  (28899): Download status barcode_armeabi_v7a.zip: There is not enough space to perform the download.

However the device (HTC One M8 / Android 5.0.1 / Play Services 7.8.99 2134222-438) definitely has enough free space - 800mb. 然而,该设备(HTC One M8 / Android 5.0.1 / Play Services 7.8.99 2134222-438)肯定有足够的可用空间 - 800mb。 I could free some more space on this particular device, but I can't tell potentially tens of thousands of users to do that... 我可以在这个特定的设备上腾出更多的空间,但是我无法告诉成千上万的用户这样做......

Can any Google Developer provide insight? 任何Google开发者都能提供见解吗? Is this a bug? 这是一个错误吗? How much free space does a device need? 设备需要多少可用空间? What mechanisms are used to determine if a device has enough free space? 使用什么机制来确定设备是否有足够的可用空间?

The download mechanism is careful not to download when a device is considered to be "too low" on storage. 当设备被认为存储“太低”时,下载机制小心不要下载。

We updated the sample apps to include a low storage check. 我们更新了示例应用以包含低存储检查。 For example: 例如:

https://github.com/googlesamples/android-vision/blob/master/visionSamples/photo-demo/app/src/main/java/com/google/android/gms/samples/vision/face/photo/PhotoViewerActivity.java#L91 https://github.com/googlesamples/android-vision/blob/master/visionSamples/photo-demo/app/src/main/java/com/google/android/gms/samples/vision/face/photo/PhotoViewerActivity。 Java的#L91

Update: 更新:

Google Vision has lowered the free storage requirement to 500 MB in Google Play Services 8.4. Google Vision已将Google Play Services 8.4中的免费存储空间要求降至500 MB。 See the release notes here: 请参阅此处的发行说明:

https://developers.google.com/vision/release-notes?hl=en https://developers.google.com/vision/release-notes?hl=en

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM