我正在使用 Google 的 OCR 库从我的应用程序中的图像中检测文本。早些时候它工作正常,但突然开始出错。我在 TextReconiger 的实例化过程中崩溃了。我在三星 S6 edge、三星 S7 等设备上遇到了这种崩溃,而在某些设备上它运行良好。
我在代码中的这一行崩溃了
TextRecognizer textRecognizer = new TextRecognizer.Builder(context).build();
崩溃日志:
native: pc 000000000006f9fc /system/lib64/libc.so (tgkill+8)
native: pc 000000000006cd10 /system/lib64/libc.so (pthread_kill+64)
native: pc 0000000000025078 /system/lib64/libc.so (raise+24)
native: pc 000000000001cc04 /system/lib64/libc.so (abort+52)
native: pc 00000000004750d0
/data/data/com.google.android.gms/app_vision/ocr/libs/arm64-
v8a/libocr.so
native: pc 0000000000475770
/data/data/com.google.android.gms/app_vision/ocr/libs/arm64-
v8a/libocr.so
native: pc 0000000000475814
/data/data/com.google.android.gms/app_vision/ocr/libs/arm64-
v8a/libocr.so
native: pc 0000000000474830
/data/data/com.google.android.gms/app_vision/ocr/libs/arm64-
v8a/libocr.so
native: pc 000000000026cee4
/data/data/com.google.android.gms/app_vision/ocr/libs/arm64-
v8a/libocr.so
native: pc 0000000000271190
/data/data/com.google.android.gms/app_vision/ocr/libs/arm64-
v8a/libocr.so
native: pc 0000000000065794
/data/data/com.google.android.gms/app_vision/ocr/libs/arm64-
v8a/libocr.so
native: pc 0000000000065488
/data/data/com.google.android.gms/app_vision/ocr/libs/arm64-
v8a/libocr.so
native: pc 000000000027caf4
/data/data/com.google.android.gms/app_vision/ocr/libs/arm64-
v8a/libocr.so
native: pc 0000000000280274
/data/data/com.google.android.gms/app_vision/ocr/libs/arm64-
v8a/libocr.so
native: pc 0000000000067c84
/data/data/com.google.android.gms/app_vision/ocr/libs/arm64-
v8a/libocr.so
native: pc 0000000000067f64
/data/data/com.google.android.gms/app_vision/ocr/libs/arm64-
v8a/libocr.so
native: pc 0000000000063dec
/data/data/com.google.android.gms/app_vision/ocr/libs/arm64-
v8a/libocr.so
native: pc 0000000000387e60
/data/user_de/0/com.google.android.gms/app_chimera/m/00000027/oat/arm64
/DynamiteModulesA_GmsCore_prodmnc_xxhdpi_release.odex
此崩溃正在影响我的应用在 Google Play 商店中的评级。从这个崩溃日志中,我不知道如何解决这个问题。如果有人知道此问题的解决方案,请帮助我。