一段时间后条码扫描仪抛出 java.lang.UnsatisfiedLinkError
After some time barcode scanner throws java.lang.UnsatisfiedLinkError
我有一台使用新 android 视觉库的条形码扫描器,它在我的设备和其他几台设备上都能完美运行。但突然它停止工作,我在日志中看到以下异常:
No implementation found for com.google.android.gms.vision.barcode.internal.NativeBarcode[] com.google.android.gms.vision.barcode.internal.NativeBarcodeDetector.recognizeBufferNative(int, int, java.nio.ByteBuffer, com.google.android.gms.vision.barcode.internal.NativeOptions) (tried Java_com_google_android_gms_vision_barcode_internal_NativeBarcodeDetector_recognizeBufferNative and Java_com_google_android_gms_vision_barcode_internal_NativeBarcodeDetector_recognizeBufferNative__IILjava_nio_ByteBuffer_2Lcom_google_android_gms_vision_barcode_internal_NativeOptions_2)
E/CameraSource: Exception thrown from receiver.
E/CameraSource: java.lang.UnsatisfiedLinkError: No implementation found for com.google.android.gms.vision.barcode.internal.NativeBarcode[] com.google.android.gms.vision.barcode.internal.NativeBarcodeDetector.recognizeBufferNative(int, int, java.nio.ByteBuffer, com.google.android.gms.vision.barcode.internal.NativeOptions) (tried Java_com_google_android_gms_vision_barcode_internal_NativeBarcodeDetector_recognizeBufferNative and Java_com_google_android_gms_vision_barcode_internal_NativeBarcodeDetector_recognizeBufferNative__IILjava_nio_ByteBuffer_2Lcom_google_android_gms_vision_barcode_internal_NativeOptions_2)
E/CameraSource: at com.google.android.gms.vision.barcode.internal.NativeBarcodeDetector.recognizeBufferNative(Native Method)
E/CameraSource: at com.google.android.gms.vision.barcode.internal.NativeBarcodeDetector.a(SourceFile:39)
E/CameraSource: at com.google.android.gms.vision.barcode.internal.client.c.onTransact(SourceFile:61)
E/CameraSource: at android.os.Binder.transact(Binder.java:380)
E/CameraSource: at com.google.android.gms.vision.barcode.internal.client.zzb$zza$zza.zza(Unknown Source)
E/CameraSource: at com.google.android.gms.vision.barcode.internal.client.zzd.zza(Unknown Source)
E/CameraSource: at com.google.android.gms.vision.barcode.BarcodeDetector.detect(Unknown Source)
E/CameraSource: at com.google.android.gms.vision.Detector.receiveFrame(Unknown Source)
E/CameraSource: at com.google.android.gms.vision.CameraSource$zzb.run(Unknown Source)
E/CameraSource: at java.lang.Thread.run(Thread.java:818)
测试barcodeDetector.isOperational()
returnstrue
。
有人有想法吗?
针对 Google Play Services 8.1 重新编译您的应用程序可能会有所帮助。此解决方法将很快出现在 https://developers.google.com/vision/release-notes.
我有一台使用新 android 视觉库的条形码扫描器,它在我的设备和其他几台设备上都能完美运行。但突然它停止工作,我在日志中看到以下异常:
No implementation found for com.google.android.gms.vision.barcode.internal.NativeBarcode[] com.google.android.gms.vision.barcode.internal.NativeBarcodeDetector.recognizeBufferNative(int, int, java.nio.ByteBuffer, com.google.android.gms.vision.barcode.internal.NativeOptions) (tried Java_com_google_android_gms_vision_barcode_internal_NativeBarcodeDetector_recognizeBufferNative and Java_com_google_android_gms_vision_barcode_internal_NativeBarcodeDetector_recognizeBufferNative__IILjava_nio_ByteBuffer_2Lcom_google_android_gms_vision_barcode_internal_NativeOptions_2)
E/CameraSource: Exception thrown from receiver.
E/CameraSource: java.lang.UnsatisfiedLinkError: No implementation found for com.google.android.gms.vision.barcode.internal.NativeBarcode[] com.google.android.gms.vision.barcode.internal.NativeBarcodeDetector.recognizeBufferNative(int, int, java.nio.ByteBuffer, com.google.android.gms.vision.barcode.internal.NativeOptions) (tried Java_com_google_android_gms_vision_barcode_internal_NativeBarcodeDetector_recognizeBufferNative and Java_com_google_android_gms_vision_barcode_internal_NativeBarcodeDetector_recognizeBufferNative__IILjava_nio_ByteBuffer_2Lcom_google_android_gms_vision_barcode_internal_NativeOptions_2)
E/CameraSource: at com.google.android.gms.vision.barcode.internal.NativeBarcodeDetector.recognizeBufferNative(Native Method)
E/CameraSource: at com.google.android.gms.vision.barcode.internal.NativeBarcodeDetector.a(SourceFile:39)
E/CameraSource: at com.google.android.gms.vision.barcode.internal.client.c.onTransact(SourceFile:61)
E/CameraSource: at android.os.Binder.transact(Binder.java:380)
E/CameraSource: at com.google.android.gms.vision.barcode.internal.client.zzb$zza$zza.zza(Unknown Source)
E/CameraSource: at com.google.android.gms.vision.barcode.internal.client.zzd.zza(Unknown Source)
E/CameraSource: at com.google.android.gms.vision.barcode.BarcodeDetector.detect(Unknown Source)
E/CameraSource: at com.google.android.gms.vision.Detector.receiveFrame(Unknown Source)
E/CameraSource: at com.google.android.gms.vision.CameraSource$zzb.run(Unknown Source)
E/CameraSource: at java.lang.Thread.run(Thread.java:818)
测试barcodeDetector.isOperational()
returnstrue
。
有人有想法吗?
针对 Google Play Services 8.1 重新编译您的应用程序可能会有所帮助。此解决方法将很快出现在 https://developers.google.com/vision/release-notes.