Android mobile vision ocr不下载所需的库

Android mobile vision ocr不下载所需的库,android,ocr,Android,Ocr,我正在开发一个应用程序,并使用移动视觉api进行文本识别(OCR)。 自从我清除了google play服务中的所有数据后,它工作得非常好。但现在它不工作了 我的日志是这样的: 04-20 12:31:13.666 13375-14347/com.example I/DynamiteModule: Considering local module com.google.android.gms.vision.dynamite:0 and remote module com.google.andro

我正在开发一个应用程序,并使用移动视觉api进行文本识别(OCR)。 自从我清除了google play服务中的所有数据后,它工作得非常好。但现在它不工作了

我的日志是这样的:

04-20 12:31:13.666 13375-14347/com.example I/DynamiteModule: Considering local module com.google.android.gms.vision.dynamite:0 and remote module com.google.android.gms.vision.dynamite:1702
04-20 12:31:14.234 13375-14347/com.example I/Vision: Loading library libocr.so
04-20 12:31:18.378 13375-14347/com.example I/Vision: Loading library libocr.so
04-20 12:31:18.382 13375-14347/com.example I/Vision: libocr.so library load status: false
04-20 12:31:18.384 13375-14347/com.example W/DynamiteModule: Local module descriptor class for com.google.android.gms.vision.dynamite not found.
04-20 12:31:18.397 13375-14347/com.example I/DynamiteModule: Considering local module com.google.android.gms.vision.dynamite:0 and remote module com.google.android.gms.vision.dynamite:1702
04-20 12:31:18.398 13375-14347/com.example I/DynamiteModule: Selected remote version of com.google.android.gms.vision.dynamite, version >= 1702
04-20 12:31:18.411 13375-14347/com.example I/Vision: Loading library libocr.so
04-20 12:31:18.412 13375-14347/com.example I/Vision: libocr.so library load status: false
我有足够的存储空间,并且
如果(hasLowStorage)
未命中:

    if (!textRecognizer.isOperational()) {

                    IntentFilter lowstorageFilter = new IntentFilter(Intent.ACTION_DEVICE_STORAGE_LOW);
                    boolean hasLowStorage = registerReceiver(null, lowstorageFilter) != null;


                    if (hasLowStorage) {
//Show some message to the user
    }
    }
在舱单中,我包括:

 <uses-feature android:name="android.hardware.camera" />
 <uses-permission android:name="android.permission.CAMERA" />
那么问题出在哪里呢?

我也遇到了同样的问题(在我的应用程序工作的设备上,但在自动更新Google Play服务后停止了)

我决定进入
Settings>Apps>googleplayservices>Memory
,然后
清除所有数据。检查类似的东西(在不同的Android版本上可能会有所不同)

<meta-data
            android:name="com.google.android.gms.version"
            android:value="@integer/google_play_services_version" />
        <meta-data
            android:name="com.google.android.gms.vision.DEPENDENCIES"
            android:value="ocr" />
dependencies {
    compile 'com.android.support:appcompat-v7:25.1.0'
    compile 'com.android.support:design:25.1.0'
    compile 'com.android.support:support-v4:25.+'
    compile 'com.google.code.gson:gson:2.8.0'
    compile 'com.google.android.gms:play-services-vision:9.8.0'
}