rhymelph / r_scan

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

java.lang.NoSuchMethodError: No interface method sort #42

Open LNyears opened 3 years ago

LNyears commented 3 years ago

r_scan: ^0.1.5 android: 6.0 vivo 扫码后报错导致应用奔溃 E/AndroidRuntime(31092): 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)

LNyears commented 3 years ago

E/AndroidRuntime( 7330): 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) E/AndroidRuntime( 7330): at com.google.zxing.qrcode.detector.FinderPatternFinder.selectBestPatterns(FinderPatternFinder.java:616) E/AndroidRuntime( 7330): at com.google.zxing.qrcode.detector.FinderPatternFinder.find(FinderPatternFinder.java:164) E/AndroidRuntime( 7330): at com.google.zxing.qrcode.detector.Detector.detect(Detector.java:81) E/AndroidRuntime( 7330): at com.google.zxing.qrcode.QRCodeReader.decode(QRCodeReader.java:77) E/AndroidRuntime( 7330): at com.google.zxing.MultiFormatReader.decodeInternal(MultiFormatReader.java:173) E/AndroidRuntime( 7330): at com.google.zxing.MultiFormatReader.decode(MultiFormatReader.java:57) E/AndroidRuntime( 7330): at com.rhyme.r_scan.RScanCamera.RScanCamera$3$1.run(RScanCamera.java:401) E/AndroidRuntime( 7330): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) E/AndroidRuntime( 7330): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) E/AndroidRuntime( 7330): at java.lang.Thread.run(Thread.java:818) I/BufferQueueProducer( 7330): SurfaceTexture-1-7330-1 queueBuffer: slot 7 is dropped, handle=0x7f86de6660

IonVillarreal commented 2 years ago

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