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

我正在使用新的Google Play Services Vision库编写应用程序来检测条形码。

在我测试过的大多数设备上一切正常,但是一个特定设备拒绝安装本地库(在此评论中提到)

// 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.

在设备的日志中,我发现了这一点:

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.

然而,该设备(HTC One M8 / Android 5.0.1 / Play服务7.8.99 2134222-438)肯定有足够的可用空间 - 800MB。 我可以在此特定设备上释放更多空间,但我无法告诉成千上万的用户可以这么做......

任何Google开发者都可以提供洞察力 这是一个错误? 设备需要多少可用空间? 用什么机制来确定设备是否有足够的可用空间?


当存储设备被认为“太低”时,下载机制小心不要下载。

我们更新了示例应用程序以包含低存储空间检查。 例如:

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

更新:

Google Vision已将Google Play服务8.4中的免费存储空间需求降低至500 MB。 请参阅发行说明:

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

链接地址: http://www.djcxy.com/p/87871.html

上一篇: Google Vision Barcode Detection Library Not Installing On Some Devices

下一篇: How to bind variables to Closure?