I am trying to implement the Google Mobile Vision TextRecogniser API into my app, to read text off a given Image. When I try to use the feature, I get this error:W/DynamiteModule: Local module descriptor class for com.google.android.gms.vision.dynamite not found.I/DynamiteModule: Considering local module com.google.android.gms.vision.dynamite:0 and remote module com.google.android.gms.vision.dynamite:801I/DynamiteModule: Selected remote version of com.google.android.gms.vision.dynamite, version >= 801W/System: ClassLoader referenced unknown path: /data/user_de/0/com.google.android.gms/app_chimera/m/00000005/n/arm64-v8aD/ApplicationLoaders: ignored Vulkan layer search path /data/app/com.google.android.gms-1/lib/arm64:/system/fake-libs64:/data/app/com.google.android.gms-1/base.apk!/lib/arm64-v8a for namespace 0x7a2e8c60f0I/Vision: Loading libocr libraryI/Vision: libocr load status: falseI/TextRecognizerCreatorImpl: Requesting download for native text recognizerW/TextNativeHandle: Native handle not yet available. Reverting to no-op handle.Meaning, I believe, that the library wasnt downloaded to the phone.I have troubleshooted for common error sources, including missing internet connection, lack of memory, missing dependencies, rebooting the phone, updating Google play services, waiting a while etc. Google repository and Play services are also updated in Android studio.Yet, I still get the same error, even when trying my App on different devices. 解决方案 I believe that the download is performed by the Google Play Service App. The Libraries are downloaded as a zip file in the folder/data/data/com.google.android.gms/cache/downloadserviceand are extracted to /data/data/com.google.android.gms/files/com.google.android.gms.visionand our app always check for the library in path 06-02 22:43:53.379 30258-30419/pzy64.searchbot I/Vision: Loading library libocr.sowhich shows the error if the files are absent 06-02 22:43:53.475 30258-30419/pzy64.searchbot I/Vision: libocr.so library load status: falseotherwise 06-03 09:42:33.372 23451-24679/pzy64.searchbot I/Vision: libocr.so library load status: trueAfter download,In my case (ARM) the folder size of /data/data/com.google.android.gms/files/com.google.android.gms.visionis around 5MB.(So the file downloaded is less than this size, The size may vary for different architecture .It took more time to download in my Asus Phone (x86)).See my Logcat - (filter using 'Vision').06-02 22:45:45.489 14970-31705/? I/Vision: Registration status ocr_armeabi_v7a.zip: The download is in progress.06-02 22:45:45.542 14970-31705/? I/Vision: Download status ocr_armeabi_v7a.zip: The download is in progress.06-02 22:43:53.379 30258-30419/pzy64.searchbot I/Vision: Loading library libocr.so06-02 22:43:53.387 30258-30419/pzy64.searchbot I/Vision: libocr.so library load status: false06-02 22:43:53.410 30258-30419/pzy64.searchbot I/Vision: Loading library libocr.so06-02 22:43:53.411 30258-30419/pzy64.searchbot I/Vision: libocr.so library load status: false06-02 22:43:53.475 30258-30419/pzy64.searchbot I/Vision: Loading library libocr.so06-02 22:43:53.475 30258-30419/pzy64.searchbot I/Vision: libocr.so library load status: false................... ................................. ..............06-02 22:51:08.364 14970-3424/? I/Vision: Finished download ocr_armeabi_v7a.zip06-02 22:51:08.421 14970-3424/? I/Vision: Unzipping /data/data/com.google.android.gms/cache/downloadservice/ocr_armeabi_v7a.zip to /data/data/com.google.android.gms/files/com.google.android.gms.vision/ocr06-02 22:51:08.645 14970-3424/? I/Vision: Time to download ocr: 43655806-02 22:51:09.142 3303-3489/pzy64.searchbot I/Vision: Loading library libocr.so06-02 22:51:09.149 3303-3489/pzy64.searchbot I/Vision: libocr.so library load status: true06-02 22:51:09.149 3303-3489/pzy64.searchbot I/Vision: Reading ocr models from /data/data/com.google.android.gms/files/com.google.android.gms.vision/ocr/data/modelsThe app i'm working on 这篇关于Google Mobile Vision库未下载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 09-15 10:31