问答详情
源自:6-3 使用zxing进行二维码解析

读取二维码信息报错

Exception in thread "main" java.lang.Error: Unresolved compilation problem: 

The method sort(FinderPatternFinder.EstimatedModuleComparator) is undefined for the type List<FinderPattern>


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:71)

at com.pwl.zxing.ReadQRCode.main(ReadQRCode.java:31)


提问者:慕粉1473061037 2019-11-21 13:43

个回答

  • 慕粉1473061037
    2019-11-21 19:22:48

    这个是jar包没完全加载进来,用老师的jar包就可以了,我原先用的是3.4.0,调整为老师的jar包就没有这个问题了。