After some time barcode scanner throws java.lang.UnsatisfiedLinkError

只愿长相守 提交于 2019-12-05 02:06:27

问题


I have a barcode scanner using the new android vision library that worked perfectly on my device and on several others. But suddenly it stops working and I see the following exception in the log:

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)

The test barcodeDetector.isOperational() returns true. Has anyone an idea?


回答1:


It may help to recompile your application against Google Play Services 8.1. This workaround will appear shortly at https://developers.google.com/vision/release-notes.



来源:https://stackoverflow.com/questions/32611471/after-some-time-barcode-scanner-throws-java-lang-unsatisfiedlinkerror

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!