ML Kit文本识别在Android Build(armeabi-v7 a)中崩溃

g6baxovj  于 2023-04-10  发布在  Android
关注(0)|答案(1)|浏览(282)

我使用mlkit的文本识别与最新版本的本机代码。
implementation 'com.google.android.gms:play-services-mlkit-text-recognition:18.0.2'
文本识别在arm 64-v8 a中提供了所需的结果,但在armeabi-v7 a中崩溃,并具有以下堆栈跟踪

java.lang.UnsatisfiedLinkError: dalvik.system.DelegateLastClassLoader[DexPathList[[zip file "/data/user_de/0/com.google.android.gms/app_chimera/m/00000476/dl-MlkitOcrCommon.optional_231115100400.apk"],nativeLibraryDirectories=[/data/user_de/0/com.google.android.gms/app_chimera/m/00000476/dl-MlkitOcrCommon.optional_231115100400.apk!/lib/armeabi-v7a, /data/user_de/0/com.google.android.gms/app_chimera/m/00000476/dl-MlkitOcrCommon.optional_231115100400.apk!/lib/armeabi, /system/lib, /system/product/lib]]] couldn't find "libmlkit_google_ocr_pipeline_gms.so"
                                                                                                        at java.lang.Runtime.loadLibrary0(Runtime.java:1067)
                                                                                                        at java.lang.Runtime.loadLibrary0(Runtime.java:1007)
                                                                                                        at java.lang.System.loadLibrary(System.java:1667)
                                                                                                        at so.c(:com.google.android.gms.optional_mlkit_ocr_common@231115065@23.11.15 (100400-0):3)
                                                                                                        at so.f(:com.google.android.gms.optional_mlkit_ocr_common@231115065@23.11.15 (100400-0):1)
                                                                                                        at so.e(:com.google.android.gms.optional_mlkit_ocr_common@231115065@23.11.15 (100400-0):0)
                                                                                                        at azb.a(:com.google.android.gms.optional_mlkit_ocr_common@231115065@23.11.15 (100400-0):5)
                                                                                                        at bp.onTransact(:com.google.android.gms.optional_mlkit_ocr_common@231115065@23.11.15 (100400-0):4)
                                                                                                        at android.os.Binder.transact(Binder.java:914)
                                                                                                        at bo.b(:com.google.android.gms.policy_vision_ocr_dynamite@231000401@231000400057.513075010.513075010:2)
                                                                                                        at aqs.f(:com.google.android.gms.policy_vision_ocr_dynamite@231000401@231000400057.513075010.513075010:0)
                                                                                                        at lr.b(:com.google.android.gms.policy_vision_ocr_dynamite@231000401@231000400057.513075010.513075010:1)
                                                                                                        at lr.a(:com.google.android.gms.policy_vision_ocr_dynamite@231000401@231000400057.513075010.513075010:8)
                                                                                                        at bp.onTransact(:com.google.android.gms.policy_vision_ocr_dynamite@231000401@231000400057.513075010.513075010:4)
                                                                                                        at android.os.Binder.transact(Binder.java:914)
                                                                                                        at com.google.android.gms.internal.vision.zzb.zza(com.google.android.gms:play-services-vision-common@@19.1.0:10)
                                                                                                        at com.google.android.gms.internal.vision.zzac.zza(com.google.android.gms:play-services-vision@@20.1.0:7)
                                                                                                        at com.google.android.gms.internal.vision.zzan.zza(com.google.android.gms:play-services-vision@@20.1.0:8)
                                                                                                        at com.google.android.gms.vision.text.TextRecognizer.detect(com.google.android.gms:play-services-vision@@20.1.0:41)
                                                                                                        at com.google.mlkit.vision.text.internal.zzb.zza(com.google.android.gms:play-services-mlkit-text-recognition@@16.0.0:33)
                                                                                                        at com.google.mlkit.vision.text.internal.zzb.run(com.google.android.gms:play-services-mlkit-text-recognition@@16.0.0:51)
                                                                                                        at com.google.mlkit.vision.common.internal.MobileVisionBase.zza(com.google.mlkit:vision-common@@16.0.0:23)
                                                                                                        at com.google.mlkit.vision.common.internal.zzb.call(Unknown Source:4)
                                                                                                        at com.google.mlkit.common.sdkinternal.ModelResource.zza(com.google.mlkit:common@@16.0.0:26)
                                                                                                        at com.google.mlkit.common.sdkinternal.zzn.call(Unknown Source:6)
                                                                                                        at com.google.mlkit.common.sdkinternal.zzm.run(com.google.mlkit:common@@16.0.0:5)
                                                                                                        at com.google.mlkit.common.sdkinternal.zzq.run(com.google.mlkit:common@@16.0.0:3)
                                                                                                        at android.os.Handler.handleCallback(Handler.java:883)
                                                                                                        at android.os.Handler.dispatchMessage(Handler.java:100)
                                                                                                        at com.google.android.gms.internal.mlkit_common.zzb.dispatchMessage(com.google.mlkit:common@@16.0.0:6)
                                                                                                        at android.os.Looper.loop(Looper.java:224)
                                                                                                        at android.os.HandlerThread.run(HandlerThread.java:67)

尝试了降级的mlkit版本,但仍然没有运气。

b4wnujal

b4wnujal1#

我面临着同样的问题,它突然出现,因为直到几天前一切都很完美。我已经在Issuetracker上打开了一个问题,但我不是很乐观,因为三个月前我报告了语音识别的另一个问题,没有得到回应。我使用的是文本识别16.1.1,但试图更新到18.0.2我有同样的问题!

相关问题