rhymelph / r_scan

📷🖨Flutter二维码&条形码扫描插件,支持相机、文件、链接、Uint8List类型扫描
https://juejin.im/post/5dd8efb1e51d452314438515
BSD 3-Clause "New" or "Revised" License
118 stars 77 forks source link

安卓6.0出现扫码后崩溃 #53

Open twopai opened 3 years ago

twopai commented 3 years ago

你好,大佬,安卓6.0扫码后出现崩溃,请解决一下,感谢!以下是错误信息: FATAL EXCEPTION: pool-9-thread-1 Process: com.gh.ghs, PID: 5962 java.lang.NoSuchMethodError: No interface method sort(Ljava/util/Comparator;)V in class Ljava/util/List; or its super classes (declaration of 'java.util.List' appears in /system/framework/core-libart.jar) at com.google.zxing.qrcode.detector.FinderPatternFinder.selectBestPatterns(FinderPatternFinder.java:616) at com.google.zxing.qrcode.detector.FinderPatternFinder.find(FinderPatternFinder.java:164) at com.google.zxing.qrcode.detector.Detector.detect(Detector.java:81) at com.google.zxing.qrcode.QRCodeReader.decode(QRCodeReader.java:77) at com.google.zxing.MultiFormatReader.decodeInternal(MultiFormatReader.java:173) at com.google.zxing.MultiFormatReader.decode(MultiFormatReader.java:57) at com.rhyme.r_scan.RScanCamera.RScanCamera$3$1.run(RScanCamera.java:401) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) at java.lang.Thread.run(Thread.java:818) SurfaceTexture-1-5962-1 queueBuffer: slot 2 is dropped, handle=0x7f605c3cc0 SurfaceTexture-1-5962-1 queueBuffer: slot 0 is dropped, handle=0x7f605c3ae0 SurfaceTexture-1-5962-1 queueBuffer: slot 3 is dropped, handle=0x7f605c3d60

IonVillarreal commented 2 years ago

Hello, I have the same problem in Android 5, it seems that method works from api 24

fzyzcjy commented 1 year ago

hi, any updates?